Prevent map popups from appearing while drawing geometries

Created on 29 September 2022, over 2 years ago
Updated 30 October 2023, over 1 year ago

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...

  1. Select the point tool
  2. Identify an existing polygon to snap the point to
  3. Begin to snap the point to a path on the polygon
  4. Once the point is snapped, slowly move the mouse cursor off the "point" towards the inside of the existing polygon
  5. Once the tip of the cursor is beyond the "point" single click the mouse
  6. 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

πŸ› Bug report
Status

Active

Version

3.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States paul121 Spokane, WA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024