mapbox / mapbox-plugins-android

Mapbox Android Plugins are a collection of libraries that extend our other SDKs, helping you design powerful mapping features while the plugins handle most of the heavy lifting.
https://www.mapbox.com/android-docs/plugins/overview/
BSD 2-Clause "Simplified" License
241 stars 120 forks source link

Annotation: cannot set `setMoveThreshold` #1120

Open mfazekas opened 4 years ago

mfazekas commented 4 years ago

We have SymbolManger with Symbol annotations. When tapping on the annotation we do receive onAnnotationDragStarted.

We'd like to configure GestureManager with setMoveThreshold so we can receive taps without drag.

However that's not possible as annotation manger does not expose the AndroidGesturesManager used.

https://github.com/react-native-mapbox-gl/maps/issues/836

We'd like to access this gesture manager: https://github.com/mapbox/mapbox-plugins-android/blob/5c52f6676ec88c8a01b86cb7bea94bb8cdffa8a6/plugin-annotation/src/main/java/com/mapbox/mapboxsdk/plugins/annotation/DraggableAnnotationController.java#L33

nstele commented 3 years ago

@tobrun Is there any update on this issue?