Full code cleanup
This commit is contained in:
parent
8e6ee8c87f
commit
bd21212eba
246 changed files with 19418 additions and 11729 deletions
|
@ -163,17 +163,18 @@ export default class CreateWayWithPointReuseAction extends OsmChangeAction {
|
|||
})
|
||||
|
||||
allChanges.push(...(await newNodeAction.CreateChangeDescriptions(changes)))
|
||||
|
||||
|
||||
nodeIdsToUse.push({
|
||||
lat, lon,
|
||||
nodeId : newNodeAction.newElementIdNumber})
|
||||
nodeId: newNodeAction.newElementIdNumber
|
||||
})
|
||||
continue
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
const closestPoint = info.closebyNodes[0]
|
||||
const id = Number(closestPoint.node.properties.id.split("/")[1])
|
||||
if(closestPoint.config.mode === "move_osm_point"){
|
||||
if (closestPoint.config.mode === "move_osm_point") {
|
||||
allChanges.push({
|
||||
type: "node",
|
||||
id,
|
||||
|
@ -193,9 +194,9 @@ export default class CreateWayWithPointReuseAction extends OsmChangeAction {
|
|||
const newWay = new CreateNewWayAction(this._tags, nodeIdsToUse, {
|
||||
theme
|
||||
})
|
||||
|
||||
|
||||
allChanges.push(...(await newWay.Perform(changes)))
|
||||
|
||||
|
||||
return allChanges
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue