如何在 OpenLayers 中加载此服务http://mapserv.utah.gov/arcgis/rest/services/BaseMaps/Lite/MapServer ?投影为 26912(UTM 12 区)。这是我尝试过的一种变体(没有成功):
var map = new OpenLayers.Map({
div : "rcp1_map",
projection: new OpenLayers.Projection("EPSG:26912")
});
var AGRCLite = new OpenLayers.Layer.XYZ( "AGRC Lite",
"http://mapserv.utah.gov/arcgis/rest/services/BaseMaps/Lite/MapServer/tile/${z}/${y}/${x}");
map.addLayer(AGRCLite);
在这种情况下使用 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 服务工作。
任何帮助,将不胜感激!