X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/30ad58c01ff8acae377cfd974fcc94d6898722da..d5841403c44a6b74ef2200c68b4fd08cd65dbbb7:/app/assets/javascripts/index/browse.js diff --git a/app/assets/javascripts/index/browse.js b/app/assets/javascripts/index/browse.js index 5bf5246d6..6bba3edf3 100644 --- a/app/assets/javascripts/index/browse.js +++ b/app/assets/javascripts/index/browse.js @@ -212,7 +212,7 @@ $(document).ready(function () { onSelect(layer); if (browseMode != "auto") { - map.setCenter(layer.getBounds().getCenter()); + map.panTo(layer.getBounds().getCenter()); } return false;