Created
April 22, 2015 02:33
-
-
Save hanislovingit/e60dbd5b6ec6054834df to your computer and use it in GitHub Desktop.
Bing-map-creation-api-entityCollection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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