umap-project / umap

uMap lets you create maps with OpenStreetMap layers in a minute and embed them in your site.
https://umap-project.org
Other
1.16k stars 220 forks source link

"Delete this shape" no longer working #2124

Closed Player701 closed 2 weeks ago

Player701 commented 2 weeks ago

Describe the bug Attempting to delete a shape from a feature containing multiple shapes results in an error.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://umap.openstreetmap.fr/
  2. Create a new map
  3. Draw a line
  4. Right-click on any point along the line, choose "Split line"
  5. Left-click on the line, then choose "Delete this shape" (3rd button from the left)
  6. Observe error: "TypeError: this.feature.enableEdit is not a function"

Expected behavior The selected part of the line gets deleted.

Screenshots N/A

Desktop (please complete the following information):

Smartphone (please complete the following information): N/A

Additional context Used to work just a few days ago.

yohanboniface commented 2 weeks ago

Thanks for the report! We'll release a fix soon. In the meantime, you can use right click for same operation.

Player701 commented 2 weeks ago

Thanks for the hint - the context menu operation ("Remove shape from the multi") does work indeed. But please also check out #2125.