This commit is contained in:
Pieter Vander Vennet 2023-01-29 13:31:49 +01:00
parent 1d11cbcf3b
commit 3c7d632739
2 changed files with 5 additions and 1 deletions

View file

@ -101,6 +101,9 @@ export default class SimpleAddUI extends LoginToggle {
snapOntoWay?: OsmWay
): Promise<void> {
tags.push(new Tag(Tag.newlyCreated.key, new Date().toISOString()))
if (snapOntoWay) {
tags.push(new Tag("_referencing_ways", "way/" + snapOntoWay.id))
}
const newElementAction = new CreateNewNodeAction(tags, location.lat, location.lon, {
theme: state.layoutToUse?.id ?? "unkown",
changeType: "create",