mirror of
https://github.com/Esri/offline-editor-js.git
synced 2025-12-15 15:20:05 +00:00
update offlineusage info when internet comes back up
This commit is contained in:
parent
5868e23ec5
commit
876524bd10
@ -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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user