Finding Longs and Lats on mouse Move

Anonymous
11-21-2004, 10:55 PM
Hi Frendz

Can any one of u plz tell me that how can I find the longitudes and lattitudes while I m moving mouse on Mappoint control.I m using C#.
Thanxx In Advance :wink:

Anonymous
11-22-2004, 03:12 AM
Hi,

private void MP_MouseMoveEvent(object sender, AxMapPoint._IMappointCtrlEvents_MouseMoveEvent e)
{
AxMapPoint.AxMappointControl mp = (AxMapPoint.AxMappointControl)sender;
Location Loc = mp.ActiveMap.XYToLocation(e.x, e.y);
if(Loc != null) {
// here convert to lat long


To convert from a location object ot lat long, several articles with code here.

rgds, Wilfried
http://www.mestdagh.biz

 
Web mp2kmag.com
mapforums.com