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

how many pushpin are in the zone

This is a discussion on how many pushpin are in the zone within the MapPoint Desktop 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 ...

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

    how many pushpin are in the zone

    I use mappoint within VB.

    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

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    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

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. US Time Zone Question
    By EdB in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 09-17-2004, 01:35 PM
  2. Does Route go through Zone
    By Clive2004 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-05-2004, 10:58 AM
  3. drivetime zone export problems
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 06-18-2003, 03:00 AM
  4. export drivetime zone
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-19-2003, 09:25 AM
  5. Find all zip codes in a drivetime zone
    By SolverDS in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 09-28-2002, 12:40 PM

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