]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/browse.js
Don't zoom map when enabling location filter
[rails.git] / app / assets / javascripts / index / browse.js
index 61ac51f6957bd6fa08dcd5ec6f00bf1a90279197..6371f559b1b9807843622232e2a3823da28267de 100644 (file)
@@ -83,6 +83,7 @@ $(document).ready(function () {
 
     function enableFilter() {
       $("#browse_filter_toggle").html(I18n.t('browse.start_rjs.view_data'));
+      locationFilter.setBounds(map.getBounds().pad(-0.2));
       locationFilter.enable();
       getData();
     }