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);
map.off("moveend", mapMoved);
map.off("baselayerchange", htmlUrlChanged);
+ locationFilter.off("change", filterChanged);
});
function getBounds() {