Problem/Motivation
When drawing geometries that are snapped along other geometries (eg: All locations layer) it is possible that a map popup will appear while drawing. This seems to happen when the next "pending" point gets snapped to the line, but the cursor is outside the "point" when clicked. This results in a point added to the snapped location (as expected) but if the tip of the cursor is within an existing polygon this can cause a popup to appear.
Steps to reproduce
I've been able to reproduce this but unfortunately can't get a screenshot that includes my mouse pointer so will try to describe a simple way to recreate...
- Select the point tool
- Identify an existing polygon to snap the point to
- Begin to snap the point to a path on the polygon
- Once the point is snapped, slowly move the mouse cursor off the "point" towards the inside of the existing polygon
- Once the tip of the cursor is beyond the "point" single click the mouse
- Observe the point is added to the snapped geometry (as expected), but also a popup appears for the existing polygon
It seems that this is easier to reproduce when the map is zoomed out, as opposed to zooming in very close on a geometry. Although I'm not sure this is actually true. It seems this is most likely to happen when the cursor is able to drift off from the snapped "point", which may be a combination of mouse speed, accuracy and user control.
Proposed resolution
If we could simple disable popups while the drawing interaction is active I think that could be an easy solution. See https://github.com/farmOS/farmOS-map/issues/184
Remaining tasks
Identify and implement a solution
User interface changes
No popups appear while drawing geometries
API changes
N/A
Data model changes
N/A
Comments
Comment #2
paul121 commentedComment #3
m.stentaComment #4
m.stenta