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
185 stars 106 forks source link

Add drag events to Symbol #464

Open pamtbaau opened 2 weeks ago

pamtbaau commented 2 weeks ago

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 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