maplibre / flutter-maplibre-gl

Customizable, performant and vendor-free vector and raster maps, flutter wrapper for maplibre-native and maplibre-gl-js (fork of flutter-mapbox-gl/maps)
https://pub.dev/packages/maplibre_gl
Other
224 stars 123 forks source link

onMapClicked and onFeatureTapped behave inconsistently on web vs mobile when interacting with a circle layer #160

Open ianthetechie opened 2 years ago

ianthetechie commented 2 years ago

The title says it all. On mobile (iOS at least), onMapClicked is invoked for taps on a circle layer's points, but not onFeatureTapped. On web and Android however, onMapClicked only applies to clicks on the map space itself rather than on the points.

The following repo illustrates the discrepancy in action. You can only tap the circle points (non-clustered) on iOS. Setting breakpoints on other platforms reveals that onFeatureTapped is being triggered instead. My inclination is that this is a bug in the way the feature is implemented on iOS and the other two are correct.

AurelienKun commented 1 year ago

Any news on this ?