fluttercommunity / fluttercommunity/apple_maps_flutter

Option to set ConsumeTapEvents

Open
#74 0 comments 0 reactions 1 assignee Claimed by @LuisThein View on GitHub
enhancement
Dominant language
Dart
Stars
83
Forks
119
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
consumeTapEvents property can't be set hence when user taps on an annotation both onTap and onAnnotationTap is called.

**Describe the solution you'd like**
An option to set consumeTapEvents in the Annotation class like in Android

**Describe alternatives you've considered**
I've set a timer now to delay my code in the onTap being called. If onAnnotation is also called, then I cancel the timer and my code in onTap will not be executed.

**Additional context**
I've got markers and polygons on my map. Now when user taps on a marker, the tap is propagated to the polygon layer too. And setting this flag will prevent this.
consumeTapEvents can be configured on Android.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.