fix: use correct snapping

This commit is contained in:
Pieter Vander Vennet 2023-03-15 15:25:45 +01:00
parent 96c819ea40
commit ec2e0e1de1

View file

@ -291,7 +291,7 @@ export default class SimpleAddUI extends LoginToggle {
layer.layerDef.mapRendering[0]
.GenerateLeafletStyle(
new ImmutableStore<OsmTags>(
isSnapping ? tags : { _referencing_ways: '["way/-1"]', ...tags }
isSnapping ? { _referencing_ways: '["way/-1"]', ...tags } : tags
),
false,
{ noSize: true }