Community of VE/MapPoint Users and Developers
This is a discussion on how many pushpin are in the zone within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I use mappoint within VB. I have drawn a zone around a route with the method FindNearby(). I have imported ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| how many pushpin are in the zone I have drawn a zone around a route with the method FindNearby(). I have imported data from a file (xls and txt), and placed on the map like pushpins. A place category has been created which describes pushpins which own to this zone. But now, I would like to recover the pushpins which own to this zone. Can you give me a way, please ? I am desperate ... :-( Thanks. Val |
| ||||
|
This sample assumes you have a map loaded with an active route and some pushpins nearby. I show loading my sample map in the form_load event. Code: Private Sub Form_Load()
Set objmap = MappointControl1.OpenMap("c:\testroute.ptm")
End Sub
Private Sub Command1_Click()
Dim objmap As MapPointCtl.Map
Set objmap = MappointControl1.ActiveMap
Dim oResults As MapPointCtl.FindResults
Set oRoute = objmap.ActiveRoute
Set oResults = oRoute.Directions.FindNearby(20)
For i = 1 To oResults.Count
If TypeOf oResults.Item(i) Is Pushpin Then
strTest = strTest + oResults.Item(i).Name & vbCrLf
i = i + 1
End If
Next
MappointControl1.PaneState = geoPaneNearbyPlaces
MsgBox strTest
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
![]() |
| Tags |
| pushpin, zone |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| US Time Zone Question | EdB | MapPoint 2006/2009 Discussion | 2 | 09-17-2004 02:35 PM |
| Does Route go through Zone | Clive2004 | MapPoint 2006/2009 Discussion | 1 | 01-05-2004 11:58 AM |
| drivetime zone export problems | Anonymous | MapPoint 2006/2009 Discussion | 4 | 06-18-2003 04:00 AM |
| export drivetime zone | Anonymous | MapPoint 2006/2009 Discussion | 1 | 05-19-2003 10:25 AM |
| Find all zip codes in a drivetime zone | SolverDS | MapPoint 2006/2009 Discussion | 0 | 09-28-2002 01:40 PM |