From b816f5b27e8d803294e333442b61d45aa4ce1eeb Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Sun, 5 Jan 2025 17:28:36 +0300 Subject: [PATCH] Remove 'center' argument of addChangeset() It is always set to true. --- app/assets/javascripts/index/changeset.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/index/changeset.js b/app/assets/javascripts/index/changeset.js index 75a1f7b4d..257dad5bc 100644 --- a/app/assets/javascripts/index/changeset.js +++ b/app/assets/javascripts/index/changeset.js @@ -12,13 +12,12 @@ OSM.Changeset = function (map) { page.load = function (path, id) { if (id) currentChangesetId = id; initialize(); - addChangeset(currentChangesetId, true); + addChangeset(currentChangesetId); }; - function addChangeset(id, center) { + function addChangeset(id) { map.addObject({ type: "changeset", id: parseInt(id, 10) }, function (bounds) { - if (!window.location.hash && bounds.isValid() && - (center || !map.getBounds().contains(bounds))) { + if (!window.location.hash && bounds.isValid()) { OSM.router.withoutMoveListener(function () { map.fitBounds(bounds); }); -- 2.39.5