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.