Getting all the Pushpin in the bing map? javascript using windows 8 winjs RRS feed


  • You can go into the base entity collection on the map: "map.entities" then loop through and check to see if the value is a pushpin or other shape by checking if the object has a getIcon method (unique to pushpins). you can also check to see if the shape is a nested EntityCollection by checking if it has a getLength method (unique to entity collections).

    Monday, January 14, 2013 5:36 PM