Last active
August 29, 2015 14:13
-
-
Save odoe/569382c48d200920873c to your computer and use it in GitHub Desktop.
Leaflet Control Template
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
L.Control.Sample = L.Control.extend({ | |
options: { | |
// topright, topleft, bottomleft, bottomright | |
position: 'topright' | |
}, | |
initialize: function (options) { | |
// constructor | |
}, | |
onAdd: function (map) { | |
// happens after added to map | |
}, | |
onRemove: function (map) { | |
// when removed | |
} | |
}); | |
L.control.sample = function(id, options) { | |
return new L.Control.Sample(id, options); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment