mapbox-gl-draw-snap-mode
mapbox-gl-draw-snap-mode copied to clipboard
Can't avoid snap near line
First - thanks, this library is amazing. I have worked snapping in the past and it's a real pain!
I ran into a bit of an issue attempting to draw polygons. Here you can see I am attempting to trace the raster.
https://user-images.githubusercontent.com/678344/128818286-6aa70749-d068-4e52-8739-3a35af782de7.mov
The point I am trying to create is not near a vertex, so I don't expect it to snap. But it seems it detects that my point is near the line, and snaps to the nearest vertex.
I'm not sure if this is a bug or just surprising behaviour that should maybe be avoidable with an option.
(I have just discovered that holding Option temporarily prevents snapping, which is a fine workaround for me. That should probably be documented, too...)