Remove 'center' argument of addChangeset()

It is always set to true.
This commit is contained in:
Anton Khorev 2025-01-05 17:28:36 +03:00
parent 95b919c5d1
commit b816f5b27e

View file

@ -12,13 +12,12 @@ OSM.Changeset = function (map) {
page.load = function (path, id) { page.load = function (path, id) {
if (id) currentChangesetId = id; if (id) currentChangesetId = id;
initialize(); initialize();
addChangeset(currentChangesetId, true); addChangeset(currentChangesetId);
}; };
function addChangeset(id, center) { function addChangeset(id) {
map.addObject({ type: "changeset", id: parseInt(id, 10) }, function (bounds) { map.addObject({ type: "changeset", id: parseInt(id, 10) }, function (bounds) {
if (!window.location.hash && bounds.isValid() && if (!window.location.hash && bounds.isValid()) {
(center || !map.getBounds().contains(bounds))) {
OSM.router.withoutMoveListener(function () { OSM.router.withoutMoveListener(function () {
map.fitBounds(bounds); map.fitBounds(bounds);
}); });