asadim

Having the Map and layers on different spatial references

Discussion created by asadim on Dec 22, 2010
Hi,

Is it possible to have the Map on spatial ref X and the street view layer (ArcGISTiledMapServiceLayer) on spatial ref Y? Like so:

var ext = new esri.geometry.Extent(123, 456, 789, 876, new esri.SpatialReference({wkid:12345}) );
var map = new esri.Map("mapDiv", { extent: ext});

var streetMap = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"); // this layer is on 4326
map.addLayer(streetMap);


The above code doesn't work so I'm looking for a solution. Basically I have a Map Server on spatial ref 12345 and I want to display a map for it. Are there other street maps for different spatial references?

Thanks!

Outcomes