Remove 'center' argument of addChangeset()
It is always set to true.
This commit is contained in:
parent
95b919c5d1
commit
b816f5b27e
1 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue