Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hanislovingit/e60dbd5b6ec6054834df to your computer and use it in GitHub Desktop.
Save hanislovingit/e60dbd5b6ec6054834df to your computer and use it in GitHub Desktop.
Bing-map-creation-api-entityCollection
// create an EntityCollection object for collecting pushpins and make them visible on the map
var pushpinsLayer = new Microsoft.Maps.EntityCollection({
visible: true,
zIndex: 2
});
// add some pushpins to the collection
pushpinsLayer.push(pushpin1);
pushpinsLayer.push(pushpin2);
// add the pushpins collection to the map
map.entities.push(pushpinsLayer);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment