MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Lat. & Long from pushpins

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


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

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 07-12-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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!
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 07-12-2004
Member
Yellow Belt
 
Join Date: Jun 2004
Posts: 37
search these forums, there are many posts
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 07-12-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Been through a lot of posts. Maybe I'm not searching for the right thing...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 07-12-2004
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,487
Blog Entries: 1
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
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 07-12-2004
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 07-12-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Thanks Eric, pinsfile was exactly what I needed.
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
lat, long, pushpins


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


All times are GMT -5. The time now is 10:35 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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