View Full Version : Detect presence of pushpin
11-17-2006, 07:55 PM
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 ...............
11-19-2006, 01:48 PM
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO