View Single Post

  #4 (permalink)  
Old 09-28-2005
Wilfried Wilfried is offline
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
Hi,

For the location sensor here is a code snipped from MouseMove event:

Code:
        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) {
                double Lat;
                double Lon;
                pos.CalcPos(Loc, out Lat, out Lon);
                statusStripLat.Text = Lat.ToString("F4");   // is 11 meter nauwkeurigheid
                statusStripLon.Text = Lon.ToString("F4");
            }
        }
The pos.CalcPos is same routine as Gilles Kohl's one.
Reply With Quote