Community of MapPoint and Virtual Earth Users and Developers
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 ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Best way to display push pins with info 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. |
| |||
| 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 |
| |||
| 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. |
| |||
| 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 |
| |||
| 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. |
| |||
| 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 |
| |||
| Re: Best way to display push pins with info
Look up ObjectsFromPoint? ![]() |
![]() |
| Tags |
| display, info, pins, push |
| ||||
| 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 | |
| |
| ||||
| 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 |
Costa Brava Holiday
Beautiful kilometres of sandy beaches await you should you choose a Costa Brava holiday through UlookUbook!