Created
April 20, 2015 01:38
-
-
Save hanislovingit/1a810c6e681475de44ad to your computer and use it in GitHub Desktop.
Bing-map-API-handling-events
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
// add an event handler to a Pushpin object | |
var pin = new Microsoft.Maps.Pushpin(<Location> object); | |
var eventHandlerId = Microsoft.Maps.Events.addHandler(pin, ‘mouseover’, function (event) { | |
// some code here to handle mouseover event on pin object | |
}); | |
// remove an event handler by using the previously created handler id | |
Microsoft.Maps.Events.removeHandler(eventHandlerId); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment