mirror of
https://github.com/Esri/offline-editor-js.git
synced 2025-12-15 15:20:05 +00:00
Explicitly declare proxyPath = null
This commit is contained in:
parent
3cafcaaef5
commit
09407218ce
@ -259,6 +259,8 @@
|
||||
console.log("Tile Layer Loaded.");
|
||||
},_isOnline);
|
||||
|
||||
tileLayer.offline.proxyPath = null;
|
||||
|
||||
var map = new Map("map",{
|
||||
center: [-104.98,39.74], // long, lat
|
||||
zoom: 8,
|
||||
|
||||
@ -157,6 +157,8 @@ require(["esri/map","utils/appCacheManager","tiles/OfflineTilesEnablerLayer","do
|
||||
console.log("Offline tile lib is enabled. Application state is: " + Offline.state);
|
||||
},_isOnline);
|
||||
|
||||
tileLayer.offline.proxyPath = null;
|
||||
|
||||
map.on("load",function(evt){
|
||||
init();
|
||||
|
||||
|
||||
@ -414,7 +414,8 @@ require(
|
||||
{
|
||||
if(success)
|
||||
{
|
||||
basemapLayer.offline.proxyPath = window.proxyPath || "../lib/resource-proxy/proxy.php";
|
||||
//basemapLayer.offline.proxyPath = window.proxyPath || "../lib/resource-proxy/proxy.php";
|
||||
basemapLayer.offline.proxyPath = null; //We are using CORS
|
||||
on(dojo.byId('prepare-for-offline-btn'),'click', prepareForOffline);
|
||||
on(dojo.byId('cancel-btn'),'click', cancel);
|
||||
on(dojo.byId('delete-all-tiles-btn'),'click', deleteAllTiles);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user