Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Latitude and Longitude 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 |
| |||
|
Hi, You wants to Goto to a Location object? Try this: Code: Location Loc = MP.ActiveMap.GetLocation(Lat, Lon, Alt);
Loc.GoTo();
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| latitude, longitude |
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 get latitude and longitude | ma2005pp | MapPoint 2006/2009 Discussion | 3 | 09-28-2005 02:57 AM |
| longitude and latitude lookup | Anonymous | MapPoint 2006/2009 Discussion | 3 | 01-24-2004 10:20 AM |
| longitude and latitude lookup | Anonymous | MapPoint 2006/2009 Discussion | 0 | 01-23-2004 04:58 PM |
| Latitude and Longitude | Anonymous | MapPoint 2006/2009 Discussion | 1 | 11-25-2003 01:52 PM |
| NMEA latitude/longitude and mappoint latitude/longitude | muurman | MapPoint 2006/2009 Discussion | 3 | 11-22-2003 05:42 AM |