mapbox / mapbox/mapbox-maps-flutter

uncluster layer onFeatureTapped callback is not working in iOS

Open
#229 4 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

Hey Mapbox team @zugaldia @mourner @sbma44 @kkaefer, in my app I have added source & layer in Mapbox with cluster, but I am facing an issue on FeatureTapped callback on uncluster-layer is not working.
Tap works on cluster circle but not on uncluster layer (eg. $25K).

Could you help me fix this issue on iOS?

![Screenshot_1694087933](https://github.com/mapbox/mapbox-maps-flutter/assets/136419902/34275be9-1d94-4706-90e1-f4541c41f28a)
```
mapController?.onFeatureTapped.add(onPinTap);

void onPinTap(dynamic data, Point point, LatLng latLng) async {
print('clicked')
}
```

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 with the reported mapController?.onFeatureTapped.add(onPinTap) registration and the clustered source and layer setup, then reproduce the unclustered feature tap on iOS using the provided callback snippet. Done means taps on the unclustered feature invoke onPinTap as well as taps on the cluster circle; the issue names no source file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter, ios
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.