This is a migrated thread and some comments may be shown as answers.

Get the mouse location from a screen point.

1 Answer 131 Views
Map
This is a migrated thread and some comments may be shown as answers.
Clint Singer
Top achievements
Rank 1
Clint Singer asked on 24 Nov 2009, 12:53 AM
Hi,

How does one go about getting a location if all you have is the mouse coordinates?  The reason why I ask is that I am handling the mouse move event which only has e.GetPosition() to get my position relative to my control.  I need to convert that to a Location relative to the map.

Cheers,
Clint

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 25 Nov 2009, 08:28 AM
Hi Clint,

You can use the static GetCoordinates(...) method of the Location class. It returns the Location according to the pixel point on the map control.


Best wishes,
Andrey Murzov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Map
Asked by
Clint Singer
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or