Explicitly declare proxyPath = null

This commit is contained in:
Andy Gup 2014-07-08 10:34:37 -06:00
parent 3cafcaaef5
commit 09407218ce
3 changed files with 6 additions and 1 deletions

View File

@ -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,

View File

@ -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();

View File

@ -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);