mapbox / mapbox/mapbox-gl-draw

Select Polygon only on a boundary click

Open
#928 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature ui
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.