Hi,
I am enabling the Mouse Coordinate display with:
map.MapTools.MouseCoordinate.IsEnabled = true;
where map is my WpfMap object.
I then set the Geography Unit to meters with:
map.MapUnit = GeographyUnit.Meter;
because we project everything from the map default EPSG:4326 projection to the EPSG:3395 "WGS 84/World Mercator" projection for our project.
The MouseCoordinate is now displayed in meters instead of lat/long. This happens regardless of the MouseCoordinateType I set with any of the following:
map.MapTools.MouseCoordinate.MouseCoordinateType = MouseCoordinateType.Custom;
map.MapTools.MouseCoordinate.MouseCoordinateType = MouseCoordinateType.Custom;
map.MapTools.MouseCoordinate.MouseCoordinateType = DegreesMinutesSeconds
map.MapTools.MouseCoordinate.MouseCoordinateType = LatitudeLongitude
map.MapTools.MouseCoordinate.MouseCoordinateType = LongitudeLatitude
I have also tried using the CoordinateText property in a handler for the map's MouseMove event to do the conversion to lat/long myself and set the resulting text, but my text either never gets set or gets overriden so that I still only see the coordinates in meters.
Is there a way to get some event when this control is updating the text and override what it is displaying?
Thanks,
Kai