Advertisement
Guest User

Untitled

a guest
May 29th, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. // add an event handler to a Pushpin object
  2. var pin = new Microsoft.Maps.Pushpin(<Location> object);
  3. var eventHandlerId = Microsoft.Maps.Events.addHandler(pin, ‘mouseover’, function (event) {
  4. // some code here to handle mouseover event on pin object
  5. });
  6.  
  7. // remove an event handler by using the previously created handler id
  8. Microsoft.Maps.Events.removeHandler(eventHandlerId);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement