I am trying to add two TiledMapservices of different spatial reference to a map object. Only the layer whichever I add first is showing.
How to make both layers to appear?
Any help would be appreciated.
Thanks
I am trying to add two TiledMapservices of different spatial reference to a map object. Only the layer whichever I add first is showing.
How to make both layers to appear?
You cannot mix tiled layers of different spatial reference together. They basically wouldn't overlap correctly. It's the projection's equivalent of mixing Miles and Kilometers together.
You can set the second layer to be an ArcGISDynamicMapserviceLayer. ArcGIS dynamic services can reproject on the fly and thereby match the baselayer's spatial reference. Of course you won't get the performance benefit of the cache layers, but that is the tradeoff you are making.
You can set the second layer to be an ArcGISDynamicMapserviceLayer. Do you mean changing the Tiled Map Service to Dynamic on the server or declaring the layer as Dynamic layer in my web app?
Even though your service is published as tiled, you can still use it as a dynamic layer on the client.