forked from MapComplete/MapComplete
Merge develop
This commit is contained in:
commit
448468c928
97 changed files with 5039 additions and 1139 deletions
|
@ -56,7 +56,10 @@ export default class SimpleAddUI extends Toggle {
|
|||
|
||||
|
||||
async function createNewPoint(tags: any[], location: { lat: number, lon: number }, snapOntoWay?: OsmWay) {
|
||||
const newElementAction = new CreateNewNodeAction(tags, location.lat, location.lon, {snapOnto: snapOntoWay})
|
||||
const newElementAction = new CreateNewNodeAction(tags, location.lat, location.lon, {
|
||||
theme: State.state?.layoutToUse?.id ?? "unkown",
|
||||
changeType: "create",
|
||||
snapOnto: snapOntoWay})
|
||||
await State.state.changes.applyAction(newElementAction)
|
||||
selectedPreset.setData(undefined)
|
||||
isShown.setData(false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue