X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/3e305fb162e9befd2bff80dbf6eb491951b03422..1673851b50e2932f04891c8140af58464c2866c4:/app/assets/javascripts/index.js diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index e0ca66766..15b45d31c 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -204,7 +204,7 @@ $(document).ready(function () { page.load = function(path, type, id) { if (OSM.STATUS === 'api_offline' || OSM.STATUS === 'database_offline') return; - map.addObject({type: type, id: parseInt(id)}, {zoom: true}); + map.addObject({type: type, id: parseInt(id)}, {zoom: window.location.hash == ""}); }; page.unload = function() {