Select to view content in your preferred language

Change map projection of ESRI:Map Object

424
1
04-07-2011 02:30 PM
NateBowers
Emerging Contributor
I'm working on a web app that calls in a dynamic map service inside a ESRI:Map object. What I want to accomplish, is to have a radio button control, that when the user selects it, the map projection of the service is changed, and redrawn appropriately on screen.

What I have currently is the radio button controls changing the WKID to the new map projection, but the map doesn't change.

I'm looking for a way to cause the map object to request the map with the updated WKID.
Tags (2)
0 Kudos
1 Reply
SimonUyttendaele
Occasional Contributor
You can try the following :

1) Change the map.spatialReference to the one you want to use
2) Change the map.extent to a valid extent using the spatialReference you want to use
3) Cause a refresh of the layers using map.centerAt() or else
0 Kudos