Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Openlayers中加载AGRC ArcGIS REST tile服务?_Openlayers_Arcgis Server - Fatal编程技术网

如何在Openlayers中加载AGRC ArcGIS REST tile服务?

如何在Openlayers中加载AGRC ArcGIS REST tile服务?,openlayers,arcgis-server,Openlayers,Arcgis Server,如何在OpenLayers中加载此服务?投影为26912(UTM 12区)。以下是我尝试过的一种变体(没有成功): 在这种情况下,使用XYZ方法有效: var ESRIWorld = new OpenLayers.Layer.XYZ( "ESRI", "http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/${z}/${y}/${x}", {sphericalMercator: true

如何在OpenLayers中加载此服务?投影为26912(UTM 12区)。以下是我尝试过的一种变体(没有成功):

在这种情况下,使用XYZ方法有效:

var ESRIWorld = new OpenLayers.Layer.XYZ( "ESRI",
"http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/${z}/${y}/${x}",
{sphericalMercator: true} );
但我不能让它为AGRC服务工作


任何帮助都将不胜感激

看看这个资源: 使用OpenLayers.Layer.ArcGIS93Rest类必须为该应用程序中不可用的缓存服务提供技巧

var ESRIWorld = new OpenLayers.Layer.XYZ( "ESRI",
"http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/${z}/${y}/${x}",
{sphericalMercator: true} );