mapbox / mapbox/mapbox-gl-draw
How to stop stopPropagation for a single click
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 612
- Avg merge
- 8d 9h
- Merged PRs (30d)
- 5
Description
**mapbox-gl-js version**:2.0.0
**mapbox-gl-draw version**:1.2.0
### Steps to Trigger Behavior
1. already have many layers on map, for displaying polygons
2. enter mapbox gl draw
3. click on map to create a point, if such point is on another layer, it will automatically quit drawing mode and select that layer
### Expected Behavior
Diable event propagation for click.
### Actual Behavior
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the behavior with mapbox-gl-js 2.0.0 and mapbox-gl-draw 1.2.0 using the listed steps, especially a point placed over an existing polygon layer. Trace click handling while drawing; done when creating the point no longer exits drawing mode or selects the underlying layer.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100