Fix export location filter button
Upstream pull request: https://github.com/kajic/leaflet-locationfilter/pull/14
This commit is contained in:
parent
4cf32e0f00
commit
637799f1f5
3 changed files with 7 additions and 6 deletions
|
@ -22,12 +22,12 @@ OSM.Export = function(map) {
|
|||
validateControls();
|
||||
}
|
||||
|
||||
function enableFilter() {
|
||||
if (!locationFilter.getBounds().isValid()) {
|
||||
locationFilter.setBounds(map.getBounds().pad(-0.2));
|
||||
}
|
||||
function enableFilter(e) {
|
||||
e.preventDefault();
|
||||
|
||||
$("#drag_box").hide();
|
||||
|
||||
locationFilter.setBounds(map.getBounds().pad(-0.2));
|
||||
locationFilter.enable();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue