mapbox / mapbox/mapbox-maps-flutter
Mutual exclusion for PolygonAnnotationClickListener and PointAnnotationClickListener
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 380
- Forks
- 204
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I have rendered polygons on my screen that are clickable (added PolygonAnnotationClickListern to it) and a point annotation on top of it. Which is clickable as well. When I click on the point annotation both listeners are triggered. I checked if setting a state would allow me to exclude one from the other but it did not do the job well. I was wondering if there is a way to mutually exclude these events.
Cheers,
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
Start by reproducing the interaction with PolygonAnnotationClickListener and PointAnnotationClickListener, since no file or test is named in the issue. Trace how overlapping annotation events are dispatched; done means clicking the point annotation no longer triggers the polygon listener as well, while each listener still works independently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100