- function startDrag() {
- $("#drag_box").html(I18n.t('export.start_rjs.drag_a_box'));
-
- clearBox();
- drawHandler.enable();
- }
-
- function endDrag(e) {
- var bounds = e.rect.getBounds();
-
- map.off("moveend", mapMoved);
- setBounds(bounds);
- drawBox(bounds);
- validateControls();
+ function enableFilter() {
+ if (!locationFilter.getBounds().isValid()) {
+ locationFilter.setBounds(map.getBounds().pad(-0.2));
+ }