How do I Load AGRC ArcGIS REST tile service in Openlayers? -


how load service http://mapserv.utah.gov/arcgis/rest/services/basemaps/lite/mapserver in openlayers? projection 26912 (utm zone 12). here 1 of variations tried (without success):

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

using xyz method works in case:

var esriworld = new openlayers.layer.xyz( "esri", "http://server.arcgisonline.com/arcgis/rest/services/world_topo_map/mapserver/tile/${z}/${y}/${x}", {sphericalmercator: true} ); 

but can't work agrc service.

any appreciated!

have @ resource : openlayer / blog sathyaprasad using openlayers.layer.arcgis93rest class must trick cache services not available in wished projection.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -