update offlineusage info when internet comes back up

This commit is contained in:
andygup 2014-04-01 17:36:53 -06:00
parent 5868e23ec5
commit 876524bd10

View File

@ -117,7 +117,7 @@ ask if you want to reload the application.
});
map.on("load",function(evt){
init(); console.log("extent " + JSON.stringify(map.extent))
init();
initOfflineTileEnabler();
console.log("level: " + map.getLevel() + ", maxZoom: " + map.getMaxZoom());
})
@ -180,6 +180,7 @@ ask if you want to reload the application.
function updateState(){
if(Offline.state === 'up'){
updateOfflineUsage();
imgOfflineIndicator.src = bluePinPath;
baseMapLayer.goOnline();
}