marker img screen coordinates

Topics: General
Sep 26, 2012 at 4:11 PM

Hello all.

Is there any posible way to take marker screen coordinates? I need to programmatically move mouse cursor to marker, but i don't know screen coordinates of it.

Any ideas?

Coordinator
Sep 27, 2012 at 5:04 PM

try:

var l = MainMap.FromLatLngToLocal(currentMarker.Position);
var screenPoint = MainMap.PointToScreen(new Point((int) l.X, (int) l.Y));
Cursor.Position = new Point((int) screenPoint.X, (int) screenPoint.Y);

Oct 6, 2012 at 11:55 AM

thanks a lot)