mapbox-maps-flutter
mapbox-maps-flutter copied to clipboard
What is the best way to create a draggable pointannotation?
So as the title says I want to create a draggable pointannotation. I can easily create a pointannotation but then I am not sure how to procced.
I can make it so that pointannotation is updated on user taps but that is not exactly what I wanted, I want drag behavior and not tap behavior. actually, I would like to have both together, If user taps it updated and if user drags it constantly updates along with user dragging.
Can anyone point me in the right direction?
I guess there isnt a way of doing this using this package. Will you ever add this feature? if yes when approximatelly?
I'm also interested in implementing a functionality like this. I'd like to be able to recognize when the user drags their finger across the map and get the ScreenCoordinates
.
Have you managed to come up with something to solve your issue @ember11498?
I'm also interested in implementing a functionality like this. I'd like to be able to recognize when the user drags their finger across the map and get the
ScreenCoordinates
.Have you managed to come up with something to solve your issue @ember11498?
I basically created a stack. So I have the map on the background and then above it I created a little dot which is always at the center of the map. As the user scrolls the map my dot stays always in the center so when user sets the final destination I get the central coordinates of the map. It works. It's just like Uber app. They also do it like this