Community of VE/MapPoint Users and Developers
This is a discussion on How-to set map location to make set of points visisble within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am using the MapPoint 2002 control in a Visual Basic application. I have a problem which I can't seem ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| How-to set map location to make set of points visisble The map is using the orthographic projection ( m_oMap.Projection = geoGlobeViewWhenZoomedOut ) but all my points are within North America so there is never a concern about a point being on the other side of the globe. Also, the aspect ratio of the map is not fixed. If the aspect ratio was fixed, I could come up with a suitable solution. Does anybody know of an algorithm I can use to solve this problem. My best (not very good) method right now is to calculate the range of coordinates of all these points and use the center of the bounding box of these points as my map location and then estimate the best altitude. My problem is that sometimes my altitude is far higher than it needs to be. Thanks for any assitance. |
| |||
|
Thanks Mossoft but I am not working with DataSets. I am strictly working with Lats/Lons. Unless there is a way to create a dataset programically which is not displayed on the map then I can use this method. I've looked into that and to me it doesn't look like I can do that. Thanks again. |
| |||
| How-to set map location to make set of points visisble
Have you tried using the GetLocation method to get an object location for each set of Lat/Lon coordinates then using the Union method with the array of object locations. Set objLoc1 = objMap.GetLocation(Lat1, Lon1) Set objLoc2 = objMap.GetLocation(Lat2, Lon2) etc. objMap.Union(Array(objLoc1, objLoc2)).GoTo Presumably this can be extended to cover more locations objMap.Union(Array(objLoc1, objLoc2, ---- etc. )).GoTo Quote from the Union Method: "Returns a Location object that represents the best map view to display all of the specified locations." RVH. |
| |||
|
In case this is useful to you. I just posted some information about calculating altitude based on a circular area/radius around a location. The information can be found at: http://www.mp2kmag.com/mappoint/disc...?p=10457#10457 Basically I determined that: objMap.Altitude = Round(radius + (radius * 3.25)) Don't ask.. I have a lot of free time.. sometimes. hah. Sounds like you pretty much got your issue figured out and if you used this, you'd still have to figure out the radius to use, but more information is better than not enough eh? Good luck! -TG |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to make shapes unmoveable ? | Jaba | MapPoint 2006/2009 Discussion | 6 | 01-12-2005 04:03 AM |
| $$$ Will Pay for A Way to Make a Map $$$ | webdbx | MapPoint 2006/2009 Discussion | 4 | 07-28-2004 07:38 AM |
| How to make invisible a pushpin | clavijo | MapPoint 2006/2009 Discussion | 2 | 07-09-2004 06:41 AM |
| Make New own baseMap | Anonymous | MapPoint 2006/2009 Discussion | 1 | 12-03-2003 09:02 AM |
| trying to make a 'locator map' | Anonymous | MapPoint 2006/2009 Discussion | 0 | 04-09-2003 03:37 PM |
Jersey Flights
Holiday Hypermarket should be your first choice for cheap flights. Book flights to exotic destinations or even just to Jersey.
Flights to Portugal
Find cheap flights to Portugal on Travel Counsellors. A personal Travel Counsellor can help you plan flights and find accommodation in Portugal.
Flights Canada
Our search results will show you a selection of airlines, travel agents and tour operators offering cheap flights to Canada. See for yourself who has the cheapest deals.
Holidays to Mauritius
Visit the paradise island in your holidays to Mauritius. Enjoy the friendliness of the locals, the warm of the sun and the beauty of the views!
Cheap Balearics Holidays
Cheap Balearics holidays are available if you know when to book and who to book with. The Balearics have many fascinating places to visit all year round. The partying never stops.
Compare Holidays
Compare holidays online where you can see all the amazing possibilities at Travel.co.uk
Holidays to Florida
Sun and sea! Get info on holidays to Florida, only at On The Beach.