Feature in Map not draggable and callback added using `MapLibreMController.onFeatureDrag.add()` is never called
Opened this issue · 0 comments
pamtbaau commented
Platforms
android
Version of flutter maplibre_gl
0.19.0+2
Bug Description
- The Feature added to the map cannot be dragged.
- When add a callback using
MapLibreMController.onFeatureDrag.add(callback)
, the callback never gets called.
Steps to Reproduce
Using 'layer.dart' of Example:
- Add callback:
void _onMapCreated(MapLibreMapController controller) { this.controller = controller; controller.onFeatureTapped.add(onFeatureTap); controller.onFeatureDrag.add(onFeatureDrag); }
- Define callback:
void onFeatureDrag( dynamic featureId, { required LatLng current, required LatLng delta, required DragEventType eventType, required LatLng origin, required Point<double> point, }) { print('Feature with id: $featureId is being called'); }
Expected Results
I would expect:
- The feature in the Map to be draggable
- The callback to be called.
Actual Results
- The feature in the Map cannot be dragged
- The callback is never called
Code Sample
See 'Steps to Reproduce'