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

Detect presence of pushpin

This is a discussion on Detect presence of pushpin within the MapPoint Desktop Discussion forums, part of the Map Forums category; My program creates a set of locations and a set of pushpins. If the locations are too close together, then ...

  1. #1
    PMACAFEE is offline Member Yellow Belt
    Join Date
    Dec 2004
    Posts
    41

    Detect presence of pushpin

    My program creates a set of locations and a set of pushpins. If the locations are too close together, then it skips a pushpin. Later I want to address all the pushpins but can not use the same counter as locations. Is there a programatic way of checking if a pushpin is present at a location?

    if mapobj.pushpin().select = true then ...............
    Thanks

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Detect presence of pushpin

    Hi,

    Several approach possible. The most easy is to give each pushpin an exclusive name, then you can use FindPushPin();. If you know the location and want to see if a pushpin is there you can use ObjectsFromPoint() or FindNearby(). Also you can keep a list of all the pushpins in an array in your application. Using the latter you have it all in control yourself, and it will be probably faster also.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Detect a pushpin name change.
    By Daniel in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 08-10-2004, 07:27 AM
  2. Finding Pushpin Name by clicking on the Pushpin?(MP 2002)
    By NickSP in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 01-10-2003, 01:11 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