Fixed export filter
This commit is contained in:
parent
6929566543
commit
c0b0829901
1 changed files with 2 additions and 3 deletions
|
@ -14,11 +14,9 @@ OSM.Export = function(map) {
|
||||||
|
|
||||||
function boundsChanged() {
|
function boundsChanged() {
|
||||||
var bounds = getBounds();
|
var bounds = getBounds();
|
||||||
|
|
||||||
map.fitBounds(bounds);
|
map.fitBounds(bounds);
|
||||||
locationFilter.setBounds(bounds);
|
locationFilter.setBounds(bounds);
|
||||||
|
locationFilter.enable();
|
||||||
enableFilter();
|
|
||||||
validateControls();
|
validateControls();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,6 +27,7 @@ OSM.Export = function(map) {
|
||||||
|
|
||||||
locationFilter.setBounds(map.getBounds().pad(-0.2));
|
locationFilter.setBounds(map.getBounds().pad(-0.2));
|
||||||
locationFilter.enable();
|
locationFilter.enable();
|
||||||
|
validateControls();
|
||||||
}
|
}
|
||||||
|
|
||||||
function update() {
|
function update() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue