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
Results 1 to 6 of 6

Lat. & Long from pushpins

This is a discussion on Lat. & Long from pushpins within the MapPoint Desktop 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 ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Lat. & Long from pushpins

    Hello,

    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!

  2. #2
    jdwhytie is offline Member Yellow Belt
    Join Date
    Jun 2004
    Posts
    37
    search these forums, there are many posts

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Been through a lot of posts. Maybe I'm not searching for the right thing...

  4. #4
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    Article 13 has some VB code, the discussion area for this article has the code ported to a few different languages.

    Also there's a free utility in one of the first newsletters called pinsfile which can accomplish this.. finally the Pushpin Tool and MapLinx Pro both have this functionality.

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  5. #5
    jdwhytie is offline Member Yellow Belt
    Join Date
    Jun 2004
    Posts
    37
    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

  6. #6
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Thanks Eric, pinsfile was exactly what I needed.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Creating a subset of Pushpins from a set of pushpins
    By paf33 in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 08-09-2005, 05:54 AM
  2. Adding pushpins by lat/long or address using MPC in MSAccess
    By GM in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 11-01-2004, 01:00 PM
  3. Lat/Long
    By lgeeck in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-01-2003, 10:03 AM
  4. Retrieving Lat/Long of pushpins
    By Anonymous in forum Wish List
    Replies: 0
    Last Post: 01-16-2003, 12:54 AM
  5. get lat./long.
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-19-2002, 06:56 AM

Tags for this Thread

Posting Permissions

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


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