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

[Multi pushpins selection ?]

This is a discussion on [Multi pushpins selection ?] within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hello, I'd like to make a multi pushpin selection. It seems to be impossible (but I'm not sure). So, I'd ...

  1. #1
    Vincent BENNER's Avatar
    Vincent BENNER is offline Member Yellow Belt
    Join Date
    Sep 2002
    Posts
    44

    [Multi pushpins selection ?]

    Hello,

    I'd like to make a multi pushpin selection.
    It seems to be impossible (but I'm not sure).

    So, I'd like to know if it's possible to draw a
    shape and to know all the pushpins which are
    inside those shape.

    Regards,

    Vincent BENNER

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    There is not a way to select more than one pushpin but you can draw a shape and right click the shape, choose export to excel.

    Programmatically you would use one of these tree methods:

    QueryShape
    QueryPolygon
    QueryCircle

  3. #3
    blackmap is offline Member Yellow Belt
    Join Date
    Dec 2002
    Posts
    39
    What is that?
    Querybycircle not available for puspins???

    The following code indeed shows no hits:

    Set objRecords = objDataSet.QueryCircle(objLoc, 2000)
    objRecords.MoveFirst
    Do While Not objRecords.EOF
    If TypeOf objRecords Is MapPoint.Pushpin Then
    lngCount = lngCount + 1
    End If
    objRecords.MoveNext
    Loop
    List1.AddItem lngCount

    I want to select the puspins (my own set) lying within that circle. Not possible?

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

    QueryCircle does support Pushpin

    Hi, Peter:

    I checked your code:

    Set objRecords = objDataSet.QueryCircle(objLoc, 2000)
    objRecords.MoveFirst
    Do While Not objRecords.EOF
    If TypeOf objRecords Is MapPoint.Pushpin Then
    lngCount = lngCount + 1
    End If
    objRecords.MoveNext
    Loop
    List1.AddItem lngCount

    Everything is fine but one place: the type of OBJRECORDS is MAPPOINT.Recordset, it is not a Pushpin. So you can't check its type to determine if the current record is a pushpin or not. :-)

  5. #5
    blackmap is offline Member Yellow Belt
    Join Date
    Dec 2002
    Posts
    39

    Is the Querybycircle method not exact?

    Thanks!
    I checked the Parent.Name of the records and there are several hits.
    Next problem: Given a radius of 100 meters Querybycircle finds records which are outside of the circle. Is the Querybycircle method not exact?

    Peter

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Adding custom pushpins to the pushpin selection
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-28-2003, 03:28 PM
  2. pop-up html/doc file on selection of pushpins
    By sandiphw in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 11-26-2003, 09:23 PM
  3. Multi-radius
    By Anonymous in forum Wish List
    Replies: 2
    Last Post: 06-29-2003, 11:54 PM
  4. Multi-radius
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-26-2003, 09:07 AM
  5. Mappoint newbie here- need to be able to map multi....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 06-13-2002, 10:04 AM

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 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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83