PDA

View Full Version : Programmatically displaying an exact Location



Anonymous
08-24-2002, 06:46 PM
Hello,

I'm trying to get MapPoint to display an exact map given four corner coordinates. I hope you may be able to help me, as I've been unsuccessful searching for information in the MapPoint API and various discussion lists.

All I would like to do is tell MapPoint to display exactly such and such a map, with either a bounding box, or a center-point/scale-like combonation. It seems some of the difficulty lies in the semi-mystical Altitude value. It seems there is no way to calculate this value programmatically, nor derive any other useful information from it. My question is similar to the one raised in the later section of a post by Tony A. at http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=ub3gvXmJBHA.1632%40tkmsftngp02 . Gilles Kohl replies with a helpful response, but leaves this particular question as "an exercise for the reader". Perhaps I am just in over my head, but I am increasingly dispairing that such a thing may not be possible.

Unfortunately, the "Union" method does not seem to be the answer, since it adds a border of un-specified width, and, as Gilles notes, the locations "will not end up as corners of the map". However, perhaps these location values can be offset with the known size of the borders?

It seems MapPoint.NET has this ability, with both bounding box and center-point/scale values supported, but MapPoint 2002 seems lacking. I am just missing something here?

Any help very, very much appreciated,
Jonny

larry_llama
12-22-2002, 11:02 PM
i'm also interested in this. i would like to say "display map with centre (lat,long) having widh n in kilometers" or something along those lines. i agree the whole "altitude" thing is crazy. the zoom level should be based on map scale. that would make a lot of things a LOT easier.