MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




How to get the 4 map area coordinates ?

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 ? ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-22-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 01-22-2004
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
area, coordinates, map


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Importing X and Y Coordinates Anonymous MapPoint 2006/2009 Discussion 2 10-10-2004 04:13 PM
Getting X,Y coordinates from addresses Anonymous MapPoint 2006/2009 Discussion 0 07-27-2004 09:35 AM
I need some coordinates Anonymous MapPoint 2006/2009 Discussion 0 03-25-2004 10:56 AM
GPS Coordinates from Holland Anonymous MapPoint 2006/2009 Discussion 1 03-24-2004 04:09 AM
Get coordinates in C# Anonymous MapPoint 2006/2009 Discussion 3 10-31-2003 07:11 AM


All times are GMT -5. The time now is 01:14 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Taba Heights Holiday
Visit Egypt with your Taba Heights holiday. Book through UlookUbook and save!



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59