Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@hanislovingit
Last active August 29, 2015 14:19
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/108038b8bc4abef52287 to your computer and use it in GitHub Desktop.
Save hanislovingit/108038b8bc4abef52287 to your computer and use it in GitHub Desktop.
Mapbox-handling-events
// add an event handler to a Marker object
var marker = L.marker(<LatLng> object);
marker.on('mouseover', function (event) {
// some code here to handle mouseover event on a marker object
});
// remove an event handler
marker.off('mouseover');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment