X,Y Pixel coordinates of a marker

Oct 12, 2010 at 8:21 PM
Edited Oct 12, 2010 at 8:24 PM

Is it possible to get the X,Y canvas position of the markers?
I am trying to iterate thru all of the markers plotted and return the X,Y pixel position on the map control.

 

using WPF

Oct 12, 2010 at 8:53 PM
Edited Oct 12, 2010 at 9:34 PM

 LocalPositionX/Y

p.s. can i ask, why do you do that?

Oct 12, 2010 at 9:39 PM

Hi radioman,

Thanks for the control and for your response!

I tried that in VB.net and it was giving crazy coordinates. not the pixel coordinates.

Anyways i dont need it anymore, i did a workaround using routes ;x

i was trying to draw lines from my cursor to the markers.

Oct 12, 2010 at 9:51 PM

it's pixel coordinates, but of the map, to get coordinates relative to left/top of control you need to use From/ToLocalCoordinates, in both cases, it should work..anyway ;}