forked from MapComplete/MapComplete
Documentation update
This commit is contained in:
parent
c91d691a36
commit
f1dcee2d39
3 changed files with 16 additions and 1 deletions
|
@ -14,7 +14,7 @@ export default class ChangeLocationAction extends OsmChangeAction {
|
||||||
}[] = [
|
}[] = [
|
||||||
{
|
{
|
||||||
value: "relocated|improve_accuraccy|...",
|
value: "relocated|improve_accuraccy|...",
|
||||||
docs: "Will appear if the ",
|
docs: "Will appear if the point has been moved",
|
||||||
changeType: ["move"],
|
changeType: ["move"],
|
||||||
specialMotivation: true,
|
specialMotivation: true,
|
||||||
},
|
},
|
||||||
|
|
|
@ -20,6 +20,19 @@ export default class DeleteAction extends OsmChangeAction {
|
||||||
private readonly _id: OsmId
|
private readonly _id: OsmId
|
||||||
private readonly _hardDelete: boolean
|
private readonly _hardDelete: boolean
|
||||||
|
|
||||||
|
static metatags: {
|
||||||
|
readonly key?: string
|
||||||
|
readonly value?: string
|
||||||
|
readonly docs: string
|
||||||
|
readonly changeType: string[]
|
||||||
|
readonly specialMotivation?: boolean
|
||||||
|
}[] = [
|
||||||
|
{
|
||||||
|
docs: "Will appear if the object was deleted",
|
||||||
|
changeType: ["deletion"],
|
||||||
|
specialMotivation: true,
|
||||||
|
},
|
||||||
|
]
|
||||||
constructor(
|
constructor(
|
||||||
id: OsmId,
|
id: OsmId,
|
||||||
softDeletionTags: TagsFilter | undefined,
|
softDeletionTags: TagsFilter | undefined,
|
||||||
|
|
|
@ -20,6 +20,7 @@ import Table from "../../UI/Base/Table"
|
||||||
import ChangeLocationAction from "./Actions/ChangeLocationAction"
|
import ChangeLocationAction from "./Actions/ChangeLocationAction"
|
||||||
import ChangeTagAction from "./Actions/ChangeTagAction"
|
import ChangeTagAction from "./Actions/ChangeTagAction"
|
||||||
import FeatureSwitchState from "../State/FeatureSwitchState"
|
import FeatureSwitchState from "../State/FeatureSwitchState"
|
||||||
|
import DeleteAction from "./Actions/DeleteAction"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles all changes made to OSM.
|
* Handles all changes made to OSM.
|
||||||
|
@ -177,6 +178,7 @@ export class Changes {
|
||||||
),
|
),
|
||||||
...addSource(ChangeTagAction.metatags, "ChangeTag"),
|
...addSource(ChangeTagAction.metatags, "ChangeTag"),
|
||||||
...addSource(ChangeLocationAction.metatags, "ChangeLocation"),
|
...addSource(ChangeLocationAction.metatags, "ChangeLocation"),
|
||||||
|
...addSource(DeleteAction.metatags, "DeleteAction")
|
||||||
// TODO
|
// TODO
|
||||||
/*
|
/*
|
||||||
...DeleteAction.metatags,
|
...DeleteAction.metatags,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue