Community of VE/MapPoint Users and Developers
This is a discussion on Lat. & Long from pushpins within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello, Looking for an easy way to get the latitude and longitude from pushpins I've placed in MapPoint. Previously I've ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Lat. & Long from pushpins Looking for an easy way to get the latitude and longitude from pushpins I've placed in MapPoint. Previously I've been doing it manually by getting the lat & long from the Location sensor and putting the values in the pushpin balloon like so: 1,-80.000,40.000,0 . . etc Kind of gets annoying when having to do a few dozen of them. Does anyone have any ideas how to do this any easier? Preferably I'd like to be able to just click to add a pushpin, and have the lat & long displayed in the name in the proper format. Thanks! |
| |||
|
This makes it so when the user clicks on the map with BOTH mouse buttons at the same time, a pushpin is created with the latitude and longitude as it's name. You need Gilles Kohl's code for getting the lat and lon also, you can get it here: http://www.mp2kmag.com/a13--kohl.ext....mappoint.html Code: Private Sub objMap_BeforeClick(ByVal Button As Long, ByVal Shift As Long, ByVal X As Long, ByVal Y As Long, Cancel As Boolean)
If Button = 3 Then
Dim pinLat As Double
Dim pinLon As Double
Dim pinLoc As Mappoint.Location
Set pinLoc = objMap.XYToLocation(X, Y)
CalcPos MapApp.ActiveMap, pinLoc, pinLat, pinLon
objMap.AddPushpin(pinLoc, pinLon & pinLat).BalloonState = geoDisplayName
pinLoc.Goto
Cancel = True
End If
End Sub
|
![]() |
| Tags |
| lat, long, pushpins |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating a subset of Pushpins from a set of pushpins | paf33 | MapPoint 2006/2009 Discussion | 3 | 08-09-2005 05:54 AM |
| Adding pushpins by lat/long or address using MPC in MSAccess | GM | MapPoint 2006/2009 Discussion | 0 | 11-01-2004 01:00 PM |
| Lat/Long | lgeeck | MapPoint 2006/2009 Discussion | 1 | 07-01-2003 10:03 AM |
| Retrieving Lat/Long of pushpins | Anonymous | Wish List | 0 | 01-16-2003 12:54 AM |
| get lat./long. | Anonymous | MapPoint 2006/2009 Discussion | 1 | 11-19-2002 06:56 AM |