MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Best way to display push pins with info

This is a discussion on Best way to display push pins with info within the Development forums, part of the MapPoint 2006/2009 Discussion category; Hello, I am just beginning a project that involves mappoint 2009 activex control and Access 2007. I need to display ...


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

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack (3) Thread Tools Display Modes
  3 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 12-25-2008
Junior Member
White Belt
 
Join Date: Dec 2008
Posts: 4
Best way to display push pins with info

Hello, I am just beginning a project that involves mappoint 2009 activex control and Access 2007. I need to display pushpins of locations on the north american map. With each of those pushpins I display, I need to display detailed information.

What is the best way to go about this? Create a recordset in access, and then loop through that recordset and place the pushpins on the map? I'll have all the address info (address line 1, city, state, zip). What is the best way to associate info, or have a click event for each pushpin? Is an html link the only way to go?

I'm not sure about the mappoint datasets that are associate with the mappoint control. Will I need to use those?

Thanks for any info.
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 12-26-2008
Senior Member
Blue Belt
 
Join Date: Dec 2002
Posts: 412
Re: Best way to display push pins with info

Hi mike1174,

It took awhile for it to sink in, but I've now realized what you're asking.

[I think] what you want is the DataSet method .ImportData using the
ArrayOfFields parameter.

Please read and understand the ImportData Method under Programming Information in Help. Afterward, do a search of this forum for Importdata.

Mike Mattys
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 12-26-2008
Junior Member
White Belt
 
Join Date: Dec 2008
Posts: 4
Re: Best way to display push pins with info

Hi, thanks for the reply. I am now using the ImportData method.

My next question is, I want to capture a click event associate when a user clicks on a pushpin.

I am putting pushpins on zip codes, so, all I need to do is capture what zip code is clicked.
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 12-26-2008
Senior Member
Blue Belt
 
Join Date: Dec 2002
Posts: 412
Re: Best way to display push pins with info

Hi.

Also in the Programming section of Help - Events (of map only).
'Zip Code' will be a Field in the Recordset extracted from the DataSet that is parent to the Pushpin selected.

Mike Mattys
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 12-27-2008
Junior Member
White Belt
 
Join Date: Dec 2008
Posts: 4
Re: Best way to display push pins with info

Hi, thanks for the reply.

Are you talking about the selection change event? Right now I am using that event to capture objPushPin.Name which contains the zip code I populated from my recordset. But, I'd rather use mappoints zip code since the user can change that name in the ballon popup.

So i tried referencing the objPushpin.Parent.Fields on the selection change event, but i get a field count of zero and didn't see zip code as a field.

If you have any code examples of how to get the zip code from an already placed pushpin on the selection changed event, that would be great.
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 12-27-2008
Senior Member
Blue Belt
 
Join Date: Dec 2002
Posts: 412
Re: Best way to display push pins with info

Hi Mike,

Yes, SelectionChange
I only have long laborious code - simpler to just say

FR = omap.ObjectsFromPoint(X,Y)
For Each Itm in FR
If itm.type = geoShowByPostal1 Then
'Got it
End If
Next

(At least that's how I wrote it 5 years ago)

Mike Mattys
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 12-28-2008
Junior Member
White Belt
 
Join Date: Dec 2008
Posts: 4
Re: Best way to display push pins with info

Hi, thanks for the code sample. What does FR represent though? What do you have FR declare as?

Thanks for the help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 12-28-2008
Senior Member
Blue Belt
 
Join Date: Dec 2002
Posts: 412
Re: Best way to display push pins with info

Look up ObjectsFromPoint?
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
display, info, pins, push


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/best-way-display-push-pins-info-9353.html

Posted By For Type Date
Using Virtual Earth in a Vista Gadget - MapPoint Articles - MP2K Magazine This thread Refback 01-06-2009 04:01 AM
Merging Multiple Routes - MapPoint Articles - MP2K Magazine This thread Refback 12-30-2008 07:20 PM
Using MapPoint In Delphi - MapPoint Articles - MP2K Magazine This thread Refback 12-26-2008 04:49 AM

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
Push Pins 02bsurfn MapPoint 2006/2009 Discussion 4 02-08-2005 06:21 AM
PUSH PINS a_cajun_2 MapPoint 2006/2009 Discussion 1 01-07-2005 07:05 PM
Where are my Push Pins! Help! flymoe MapPoint 2006/2009 Discussion 1 11-20-2004 03:24 AM
Push Pins Anonymous MapPoint 2006/2009 Discussion 2 04-14-2004 06:16 AM
Push Pins Ravi1 MapPoint 2006/2009 Discussion 2 10-21-2003 06:03 PM


All times are GMT -5. The time now is 12:15 AM.


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

Costa Brava Holiday
Beautiful kilometres of sandy beaches await you should you choose a Costa Brava holiday through UlookUbook!



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