Skip to content

Instantly share code, notes, and snippets.

View sowelie's full-sized avatar

Kyle Pinette sowelie

View GitHub Profile
@sowelie
sowelie / marker-rollover.js
Last active May 9, 2018 09:11
Custom marker implementation for leaflet with rollover popup functionality.
var MyCustomMarker = L.Marker.extend({
bindPopup: function(htmlContent, options) {
if (options && options.showOnMouseOver) {
// call the super method
L.Marker.prototype.bindPopup.apply(this, [htmlContent, options]);
// unbind the click event