Mappoint 2004 - get Longitude and Latitude values

  • Thread starter Thread starter Jochen
  • Start date Start date
J

Jochen

Hello,

I'm currently trying to programm a Windows Application that
embedds a MapPointControl.

My question is, how I can retrieve the Longitude and
Latitude from a spot on the map, e.g. the Mouse position.

Unfortunately the Location Object does contain these
values but I couldn't find a way to retrieve these values.

Any suggestions?

greets

Jochen
 
I'm currently trying to program a Windows Application that
embeds a MapPointControl.

My question is, how I can retrieve the Longitude and
Latitude from a spot on the map, e.g. the Mouse position.

Unfortunately the Location Object does contain these
values but I couldn't find a way to retrieve these values.

Any suggestions?

Jochen,

Take a look at this article, with a little trig you can retrieve the
lat/lon:
http://www.mp2kmag.com/a13-extract.lat.lon.mappoint.html
You will find a port of the code to C# in the discussion area for the
article:
http://www.mp2kmag.com/mappoint/discussion/viewtopic.asp?t=3291

If you're programming with MapPoint, there's a lot on the site you
will find of value, but little of it is ported to C# yet..

Eric
 
Back
Top