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
226 stars 125 forks source link

[BUG] map init config parameter "dragEnabled" set false not work #474

Open mantifly opened 4 months ago

mantifly commented 4 months ago

Platforms

android

Version of flutter maplibre_gl

0.20.0

Bug Description

map init config parameter "dragEnabled" set false not work

Steps to Reproduce

just config dragEnabled: false

Expected Results

when dragEnabled set false, the map should not be draggable

Actual Results

when dragEnabled set false, the map still can drag

Code Sample

//example demo full_map.dart, add last line code "dragEnabled: false" MapLibreMap( onMapCreated: _onMapCreated, initialCameraPosition: const CameraPosition(target: LatLng(0.0, 0.0)), onStyleLoadedCallback: _onStyleLoadedCallback, dragEnabled: false, )