Skip to content

Commit

Permalink
bug fixes to noedit full offline sample
Browse files Browse the repository at this point in the history
  • Loading branch information
andygup committed Dec 1, 2015
1 parent 31e3045 commit 659a9e9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions samples/appcache-twofeatureslayer-noedit.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
.container { padding: 20px; width: 100%;}
</style>

<script src="../vendor/offline/offline.min.js"></script>
<script src="//github.hubspot.com/offline/offline.min.js"></script>
<script>
// This options sets up an image that the offline status detection library
// will use to ping to see if app is online or offline.
Expand Down Expand Up @@ -250,7 +250,7 @@
featureLayers[0] = "http://services1.arcgis.com/M8KJPUwAXP8jhtnM/arcgis/rest/services/Denver_Bus_Stops/FeatureServer/0";
featureLayers[1] = "http://services1.arcgis.com/M8KJPUwAXP8jhtnM/ArcGIS/rest/services/b_cycle_stations/FeatureServer/0";

tileLayer = new O.esri.Tiles.OfflineTileEnablerLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer",function(evt){
tileLayer = new O.esri.Tiles.OfflineTilesAdvanced("http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer",function(evt){
console.log("Tile Layer initialized for offline. App state is: " + Offline.state);
},_isOnline);

Expand Down Expand Up @@ -506,8 +506,6 @@
deferred2.reject(false);
}
});

deferred2.resolve(true);
});

map.addLayer(bicycleStationFeatureLayer);
Expand Down

0 comments on commit 659a9e9

Please sign in to comment.