mapbox / mapbox/mapbox-maps-flutter

Mutual exclusion for PolygonAnnotationClickListener and PointAnnotationClickListener

Open
#299 3 comments 0 reactions 0 assignees View on GitHub

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.