forked from MapComplete/MapComplete
Make fixme optional if stated in the softDeletionTags
This commit is contained in:
parent
4e346c2820
commit
6c3f9bae25
2 changed files with 22 additions and 16 deletions
|
@ -30,6 +30,9 @@ export default class DeleteAction extends OsmChangeAction {
|
||||||
this._id = id
|
this._id = id
|
||||||
this._hardDelete = hardDelete
|
this._hardDelete = hardDelete
|
||||||
this.meta = {...meta, changeType: "deletion"}
|
this.meta = {...meta, changeType: "deletion"}
|
||||||
|
if (softDeletionTags.usedKeys().indexOf("fixme") >= 0) {
|
||||||
|
this._softDeletionTags = softDeletionTags
|
||||||
|
} else {
|
||||||
this._softDeletionTags = new And([
|
this._softDeletionTags = new And([
|
||||||
softDeletionTags,
|
softDeletionTags,
|
||||||
new Tag(
|
new Tag(
|
||||||
|
@ -38,6 +41,7 @@ export default class DeleteAction extends OsmChangeAction {
|
||||||
),
|
),
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public async CreateChangeDescriptions(changes: Changes): Promise<ChangeDescription[]> {
|
public async CreateChangeDescriptions(changes: Changes): Promise<ChangeDescription[]> {
|
||||||
const osmObject = await OsmObject.DownloadObjectAsync(this._id)
|
const osmObject = await OsmObject.DownloadObjectAsync(this._id)
|
||||||
|
|
|
@ -518,6 +518,8 @@
|
||||||
"motor_vehicle=",
|
"motor_vehicle=",
|
||||||
"vehicle=",
|
"vehicle=",
|
||||||
"inline_skate=",
|
"inline_skate=",
|
||||||
|
"inline_skates=",
|
||||||
|
"mofa=",
|
||||||
"moped=",
|
"moped=",
|
||||||
"moped_a=",
|
"moped_a=",
|
||||||
"moped_b=",
|
"moped_b=",
|
||||||
|
@ -526,8 +528,8 @@
|
||||||
"maxwidth:physical=",
|
"maxwidth:physical=",
|
||||||
"width:separation=",
|
"width:separation=",
|
||||||
"width:opening=",
|
"width:opening=",
|
||||||
"overlap="
|
"overlap=",
|
||||||
|
"fixme="
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue