You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Symbols can be marked as draggable and can be dragged around in the Map.
However, there is no option to add a callback to catch the dragging. I would love to see events like for example dragStart and dragEnd.
Describe alternatives you've considered
I've tried to add Features instead of Symbols, because there is a MapLibreMapController.onFeatureDrag.add(), but unfortunately, Features appear not to be draggable in the Map and the drag callback is never being called.
Additional context
No response
The text was updated successfully, but these errors were encountered:
@pamtbaau Just figured I'd let you know the solution I found for this (maybe you found something better but I've seen a few posts about this on both MapLibre and MapBox).
For me I wrapped my Map in a GestureDector widget, and then I used the onPanEnd function to detect when movement has stopped.
When the movement stops I query the ID of the symbol that I care about and get its co-ordninates.
As development of flutter-maplibre feels a bit sluggish I'm afraid it will not be a flourishing and stable library to base an application upon. I've given it a try because it's the only library I found that supports free "aerial" maps.
@pamtbaau I have to admit I'm in much the same boat in terms of giving it a try. I do however appreciate that it is an "official" package which supports both web and mobile. With the paid competitor it was a third party package which whilst well done - was not perfect.
Feature Description
Symbols can be marked as
draggable
and can be dragged around in the Map.However, there is no option to add a callback to catch the dragging. I would love to see events like for example
dragStart
anddragEnd
.Describe alternatives you've considered
I've tried to add Features instead of Symbols, because there is a
MapLibreMapController.onFeatureDrag.add()
, but unfortunately, Features appear not to be draggable in the Map and the drag callback is never being called.Additional context
No response
The text was updated successfully, but these errors were encountered: