Skip to content

Instantly share code, notes, and snippets.

@emtiu
emtiu / leaflet.button.js
Last active December 20, 2015 08:09 — forked from ns-1m/leaflet-button-control.js
added display variable that hides button
// from https://gist.github.com/emtiu/6098482
// Modified from fork origin:
// Adapted for use in https://github.com/dave-null/piratenmandate-frontend
// Usage:
// var someButton = new L.Control.Button(options).addTo(map);
// This calls OnAdd(). See the code for what options are required
// The third parameter passed to L.DomEvent.addListener is the 'this' context
// to use in the callback (second parameter).