Pass the layer to add a new point to instead of searching it, fixes layer confusion bug reported by ThibaultMol

This commit is contained in:
Pieter Vander Vennet 2023-01-16 11:58:24 +01:00
parent 3046fbfb56
commit 8fc56f7487
2 changed files with 5 additions and 22 deletions

View file

@ -78,6 +78,7 @@ export default class ConfirmLocationOfPoint extends Combine {
mapBackground: backgroundLayer,
centerLocation: locationSrc,
snapTo: snapToFeatures,
renderLayerForSnappedPoint: preset.layerToAddTo.layerDef,
snappedPointTags: tags,
maxSnapDistance: preset.preciseInput.maxSnapDistance,
bounds: mapBounds,