Fix Basic ESRI Map Cache Example
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
var layerExtent = new OpenLayers.Bounds( -13758743.4295939, 5591455.28887228, -13531302.3472101 , 5757360.4178881);
|
||||
map = new OpenLayers.Map( 'map', {'restrictedExtent': layerExtent} );
|
||||
layer = new OpenLayers.Layer.XYZ( "ESRI",
|
||||
"http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Portland/ESRI_LandBase_WebMercator/MapServer/tile/${z}/${y}/${x}",
|
||||
"http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/${z}/${y}/${x}",
|
||||
{sphericalMercator: true} );
|
||||
map.addLayer(layer);
|
||||
map.zoomToExtent(map.restrictedExtent);
|
||||
@@ -33,7 +33,7 @@
|
||||
XYZ, layer, tile
|
||||
</div>
|
||||
|
||||
<div id="shortdesc">Show a Simple ESRI map using the layer from <a href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Portland/ESRI_LandBase_WebMercator/MapServer">ESRI's server</a>. </div>
|
||||
<div id="shortdesc">Show a Simple ESRI map using the layer from <a href="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer">ESRI's server</a>. </div>
|
||||
|
||||
<div id="map" class="smallmap"></div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user