mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-17 22:24:49 +02:00
Fix instances where adding favorite preset would not add tags
This commit is contained in:
@@ -47,7 +47,7 @@ export function modeAddLine(context, customMode) {
|
||||
function startFromWay(loc, edge) {
|
||||
var startGraph = context.graph();
|
||||
var node = osmNode({ loc: loc });
|
||||
var way = osmWay();
|
||||
var way = osmWay({ tags: defaultTags });
|
||||
|
||||
context.perform(
|
||||
actionAddEntity(node),
|
||||
@@ -62,7 +62,7 @@ export function modeAddLine(context, customMode) {
|
||||
|
||||
function startFromNode(node) {
|
||||
var startGraph = context.graph();
|
||||
var way = osmWay();
|
||||
var way = osmWay({ tags: defaultTags });
|
||||
|
||||
context.perform(
|
||||
actionAddEntity(way),
|
||||
|
||||
@@ -42,7 +42,7 @@ export function modeAddPoint(context, customMode) {
|
||||
|
||||
|
||||
function addWay(loc, edge) {
|
||||
var node = osmNode();
|
||||
var node = osmNode({ tags: defaultTags });
|
||||
|
||||
context.perform(
|
||||
actionAddMidpoint({loc: loc, edge: edge}, node),
|
||||
|
||||
Reference in New Issue
Block a user