Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

 Subscribe to receive our newsletter. Subscribe Unsubscribe

## How to get the 4 map area coordinates ?

This is a discussion on How to get the 4 map area coordinates ? within the MapPoint Desktop 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 ? ...

1. Senior Member Black Belt
Join Date
Jul 2002
Posts
5,137

## How to get the 4 map area coordinates ?

Hi. Would someone know how to get the 4 coordinates surrounding a map that in the MapPoint ActiveX control ?
Thanks

2. Here is some code that will give you the location objects for the four corners.

Code:
```Dim objLocs&#40;1 To 4&#41; As MapPointCtl.Location
Set objLocs&#40;1&#41; = objmap.XYToLocation&#40;objmap.Left, objmap.Top&#41;
Set objLocs&#40;2&#41; = objmap.XYToLocation&#40;objmap.Width, objmap.Top&#41;
Set objLocs&#40;3&#41; = objmap.XYToLocation&#40;objmap.Width, objmap.Height&#41;
Set objLocs&#40;4&#41; = objmap.XYToLocation&#40;objmap.Left, objmap.Height&#41;```

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

##### Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•