Closed k3nda closed 1 month ago
Thank you for the suggestion.
We created a ticket to support onDrag
in Compose.
I'll come back as soon as it's released.
Can you provide any time estimation of the release please?
Can you provide any time estimation of the release please?
Optimistically in v11.8.0-beta.1 coming out next week.
@k3nda 11.8.0-beta.1 release is out and it supports draggable annotations in the Compose. You could also check the compose examples in the repo to see how it works. https://github.com/mapbox/mapbox-maps-android/releases/tag/v11.8.0-beta.1
New Feature
Add possibility to listen to drag events for all annotations. Either parameter
dragListener
or allonDragStarted
,onDrag
andonDragFinished
.Same functionality as it is now possible in non-composable:
Example of usage:
Why
There is
onClick
parameter already so why there is no support for drag events? It is crucial thing for us as we draw polygons and we need to edit them and move with points.