- function startExport() {
- var locationFilter = new L.LocationFilter({
- enableButton: false,
- adjustButton: false
- }).addTo(map);
-
- locationFilter.on("change", update);
-
- map.on("moveend", update);
-
- $("#sidebar_title").html(I18n.t('export.start_rjs.export'));
-
- $("#maxlat,#minlon,#maxlon,#minlat").change(boundsChanged);
+ function boundsChanged() {
+ var bounds = getBounds();
+ map.fitBounds(bounds);
+ locationFilter.setBounds(bounds);
+ locationFilter.enable();
+ validateControls();
+ }