MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Latitude and Longitude

This is a discussion on Latitude and Longitude within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; The code below captures the latitudes and longitues correctly, however, it breaks when i try to "goto" the latitude and ...


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 03-21-2005
Junior Member
White Belt
 
Join Date: Mar 2005
Posts: 8
Latitude and Longitude

The code below captures the latitudes and longitues correctly, however, it
breaks when i try to "goto" the latitude and longitude. It seems to be a
syntax error.

These are the line where i need help with. I want to go the calculated Lat
and Lon. Again, they are alredy calcultated, i just want to go to them.

Thanks for any help given.

Set objLocCalc = MappointControl1.ActiveMap.Location(lat, lon)

'.SelectedArea(lat, lon)

objLocCalc.GoTo


Private Sub MappointControl1_BeforeClick(ByVal Button As Long, ByVal Shift
As Long, ByVal X As Long, ByVal Y As Long, Cancel As Boolean)
Dim objMap As MapPointCtl.Map
Dim objLoc As MapPointCtl.Location
Dim objLocCalc As MapPointCtl.Location
'Dim Lat As Double
'Dim Lon As Double
Set objMap = MappointControl1.ActiveMap
Set objLoc = MappointControl1.ActiveMap.XYToLocation(X, Y)
CalcPos objMap, objLoc, lat, lon
Print lat
Print lon

Set objLocCalc = MappointControl1.ActiveMap.Location(lat, lon)

'.SelectedArea(lat, lon)

objLocCalc.GoTo


'objMap.SelectedArea.Location.GoTo


End Sub
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 03-21-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Hi,

You wants to Goto to a Location object? Try this:

Code:
            Location Loc = MP.ActiveMap.GetLocation(Lat, Lon, Alt);
            Loc.GoTo();
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
latitude, longitude


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
How to get latitude and longitude ma2005pp MapPoint 2006/2009 Discussion 3 09-28-2005 01:57 AM
longitude and latitude lookup Anonymous MapPoint 2006/2009 Discussion 3 01-24-2004 09:20 AM
longitude and latitude lookup Anonymous MapPoint 2006/2009 Discussion 0 01-23-2004 03:58 PM
Latitude and Longitude Anonymous MapPoint 2006/2009 Discussion 1 11-25-2003 12:52 PM
NMEA latitude/longitude and mappoint latitude/longitude muurman MapPoint 2006/2009 Discussion 3 11-22-2003 04:42 AM


All times are GMT -5. The time now is 10:02 PM.


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

Florida Holiday
Book your Florida holiday through UlookUbook and save cash!



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