Community of VE/MapPoint Users and Developers
This is a discussion on How to get the 4 map area coordinates ? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi. Would someone know how to get the 4 coordinates surrounding a map that in the MapPoint ActiveX control ? ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
|
Here is some code that will give you the location objects for the four corners. Code: Dim objLocs(1 To 4) As MapPointCtl.Location Set objLocs(1) = objmap.XYToLocation(objmap.Left, objmap.Top) Set objLocs(2) = objmap.XYToLocation(objmap.Width, objmap.Top) Set objLocs(3) = objmap.XYToLocation(objmap.Width, objmap.Height) Set objLocs(4) = objmap.XYToLocation(objmap.Left, objmap.Height) To convert that to lat/long there are a few articles here at MP2KMAG that deal with getting the lat/long - here is a link to one: A More Compact Method for Obtaining Lat/Long http://www.mp2kmag.com/a13--kohl.ext....mappoint.html
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
![]() |
| Tags |
| area, coordinates, map |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Importing X and Y Coordinates | Anonymous | MapPoint 2006/2009 Discussion | 2 | 10-10-2004 05:13 PM |
| Getting X,Y coordinates from addresses | Anonymous | MapPoint 2006/2009 Discussion | 0 | 07-27-2004 10:35 AM |
| I need some coordinates | Anonymous | MapPoint 2006/2009 Discussion | 0 | 03-25-2004 11:56 AM |
| GPS Coordinates from Holland | Anonymous | MapPoint 2006/2009 Discussion | 1 | 03-24-2004 05:09 AM |
| Get coordinates in C# | Anonymous | MapPoint 2006/2009 Discussion | 3 | 10-31-2003 08:11 AM |