X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/aff23d4b4bc9e9fecd5c1caa7e4d38087e002396..d31fc7c2f5c0f43b9e65479e3f1690bdd0c2fb4a:/app/assets/javascripts/browse.js diff --git a/app/assets/javascripts/browse.js b/app/assets/javascripts/browse.js index b20e4516e..5d2412183 100644 --- a/app/assets/javascripts/browse.js +++ b/app/assets/javascripts/browse.js @@ -47,10 +47,7 @@ $(document).ready(function () { return remoteEditHandler(bbox); }); - updatelinks(params, 16, null, - bbox.getWest(), bbox.getSouth(), - bbox.getEast(), bbox.getNorth(), - object); + updatelinks(params, 16, null, bbox, object); } else { $("#object_larger_map, #object_edit").hide(); @@ -60,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();