Fixed export filter

This commit is contained in:
Aaron Lidman 2013-11-18 18:44:48 -08:00
parent 6929566543
commit c0b0829901

View file

@ -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() {