Really no way to detect a Pushpin drag, is there?

aroberts
03-26-2008, 03:17 PM
I've never seen an example that works. One would think that should be a pretty fundamental task for a mapping API: To actually notify when something is moved. The underlying data structure is obviously detecting this--why not expose it?

Wilfried
03-31-2008, 06:03 AM
Hi,

You could use SelectionChange event for this and check Location.Latitude and Location.Longitude if they are changed.

But SelectionChange will only fire when user select a puslpin and deselect it or select something else. A workaround for this could be that if user don't deselect you can do it yourself with a timer. A second workaround for this could be if a pushpin is selected in a timer event you check once a while if location of it is changed. You deactivate the timer the moment the pushpin is unselected.

 
Web mp2kmag.com
mapforums.com