Select to view content in your preferred language

Incorrect latitutde/longitude of cursor after moving the map

1021
2
10-11-2011 07:07 AM
AustinBarton
Emerging Contributor
To reproduce using sample http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#MouseCoords:


  1. Press the left mouse button down on a point on the map

  2. Drag the cursor to a new position

  3. When the map is done moving look at the cursor coordinates


The problem can be reproduced with the ShowCoordinatesBehavior. The problem can be mitigated to some extent by updating the coordinates on the left mouse up event.

Any ideas for resolution?
0 Kudos
2 Replies
dotMorten_esri
Esri Notable Contributor
This is more a problem in the sample than in the API.
The cursor coordinates are updated on mouse move, however, the map extent under it is moving slightly "delayed". You could fix the sample by storing last known screen location for the mouse, and also update the mouse coordinates on Map.ExtentChanging.
0 Kudos
AustinBarton
Emerging Contributor
Solution worked well. Thank you.
0 Kudos