X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/411748a48ccf366a371558060a0eb6367f0f41d3..6f793e1b21a534b0331a5874613c4f3c05853a45:/app/assets/javascripts/index.js?ds=sidebyside diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 34c3d8e6e..4f0dfb148 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -107,14 +107,7 @@ $(document).ready(function () { remoteEditHandler(); } - $(window).resize(function() { - var centre = map.getCenter(); - var zoom = map.getZoom(); - - handleResize(); - - map.setCenter(centre, zoom); - }); + $(window).resize(handleResize); $("#search_form").submit(function () { var bounds = map.getBounds();