mapbox / mapbox/mapbox-gl-draw
Select Polygon only on a boundary click
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 612
- Avg merge
- 8d 9h
- Merged PRs (30d)
- 5
Description
I have an issue where every time I click inside the polygon, it selects that polygon and I can't select anything else inside it. I was wondering if there is a way to select polygons only when clicking on their boundaries rather than the inside. So that I can still interact with the part of the map that is inside the polygon.
Thank you.
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
No file, test, or entry point is named. Start by reproducing polygon selection in mapbox-gl-draw and tracing the selection behavior for interior versus boundary clicks; done means boundary clicks select the polygon while interior map interactions remain available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100