Select to view content in your preferred language

Convert Mouse Coordinates

2008
2
03-07-2012 06:01 AM
AnthonyJedamski
New Contributor
Hi, I'm using the Show Mouse Coordinates tool and it works really well:

http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#MouseCoords

I suppose that these coordinates are in the projection of my layers, which in this case is Web Mercator. Is there an easy way to customize this and convert these coordinates to some other projection?


Thanks!
0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor
The showcoordinatesbehavior doesn't support projection. So there is no out of the box way to get what you need.

However you can write your own behavior that projects the map coordinates.
Basically:
- hook up an handler to the map MouseMove event
- transform the coordinates by using WebMercator.ToGeographic method
- display the projected coordinates
0 Kudos
MuhammadWaqar_ul_islam
Occasional Contributor
Well i have the same issue
My Projection are
Projected Coordinate System: WGS_1984_UTM_Zone_42N
Projection:                             Transverse_Mercator
Linear Unit:  Meter

i want to display values in decimal degree not in meters
projection should remains same Like in (Arcgis info)] from data frame properties we change the display to decimal degree
0 Kudos