X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8ba70fa08d03025a4b938208e6fd6cf303b877ab..258e66299ac45c4dbb951dee0a92194301b31737:/app/assets/javascripts/browse.js?ds=sidebyside diff --git a/app/assets/javascripts/browse.js b/app/assets/javascripts/browse.js index 023dc878d..5d2412183 100644 --- a/app/assets/javascripts/browse.js +++ b/app/assets/javascripts/browse.js @@ -57,8 +57,8 @@ $(document).ready(function () { object.version = params.version - 1; } - addObjectToMap(object, map, { - zoom: true, + map.addObject(object, { + zoom: true, callback: function(extent) { $("#loading").hide(); $("#browse_map .geolink").show();