Update leaflet.locationfilter
This commit is contained in:
parent
6054eea238
commit
378d08f2c9
3 changed files with 38 additions and 39 deletions
|
@ -16,9 +16,10 @@ $(document).ready(function () {
|
|||
var locationFilter = new L.LocationFilter({
|
||||
enableButton: false,
|
||||
adjustButton: false,
|
||||
onChange: filterChanged
|
||||
}).addTo(map);
|
||||
|
||||
locationFilter.on("change", filterChanged);
|
||||
|
||||
map.on("moveend", mapMoved);
|
||||
map.on("baselayerchange", htmlUrlChanged);
|
||||
|
||||
|
@ -54,6 +55,7 @@ $(document).ready(function () {
|
|||
|
||||
map.off("moveend", mapMoved);
|
||||
map.off("baselayerchange", htmlUrlChanged);
|
||||
locationFilter.off("change", filterChanged);
|
||||
});
|
||||
|
||||
function getBounds() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue