mirror of
https://github.com/Esri/offline-editor-js.git
synced 2025-12-15 15:20:05 +00:00
moved initappCacheManager
This commit is contained in:
parent
3a30ac39f0
commit
c438da1052
@ -93,9 +93,11 @@
|
||||
"edit/restartOfflineFeaturesManager", "utils/appCacheManager",
|
||||
"esri/renderers/SimpleRenderer","esri/symbols/SimpleMarkerSymbol","esri/Color",
|
||||
"dojo/domReady!"],
|
||||
function(Map,FeatureLayer,OfflineTilesEnabler,restartOfflineFeaturesMgr,appCacheManager,
|
||||
function(Map,FeatureLayer,OfflineTilesEnabler,restartOfflineFeaturesMgr,AppCacheManager,
|
||||
SimpleRenderer,SimpleMarkerSymbol,Color) {
|
||||
|
||||
initAppCacheManager();
|
||||
|
||||
var _isOnline = true;
|
||||
var defaultSymbol;
|
||||
var busStopFeatureLayer;
|
||||
@ -126,7 +128,7 @@
|
||||
|
||||
function startMap(){
|
||||
var tileLayer = new OfflineTilesEnabler("http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer",function(evt){
|
||||
console.log("YAYA")
|
||||
console.log("Tile Layer Loaded.")
|
||||
},true);
|
||||
|
||||
var map = new Map("map",{
|
||||
@ -168,8 +170,7 @@
|
||||
map.on("load",function(evt){
|
||||
|
||||
// updateOfflineUsage();
|
||||
//
|
||||
// initAppCacheManager();
|
||||
|
||||
if(_isOnline == false){
|
||||
var featureLayer = JSON.parse(localStorage.offlineLayerDef);
|
||||
var featuresArray = JSON.parse(localStorage.offlineFeature);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user