]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/browse.js
Calculate scale in export
[rails.git] / app / assets / javascripts / index / browse.js
index 5bf5246d67628e670acc891bd178f82630b80ac2..6bba3edf3f59a49d7a65b90993ab5d58b7e77200 100644 (file)
@@ -212,7 +212,7 @@ $(document).ready(function () {
       onSelect(layer);
 
       if (browseMode != "auto") {
-        map.setCenter(layer.getBounds().getCenter());
+        map.panTo(layer.getBounds().getCenter());
       }
 
       return false;