-
Notifications
You must be signed in to change notification settings - Fork 542
Description
Hi, I'm trying to determine whether this lib is a good replacement for the native version of my apps. It looks like it has everything I'm using in native version, but since data clustering isn't yet supported, I wanted to develop something like a listener on map zoom, to get the current zoom and redraw the symbols. But can't find the listener for let's say onMapIdle. It seems like it's never called? I'm also hiding/showing buttons when user drags the camera view... My debug app has the following code:
MapboxMap( styleString: MapboxStyles.OUTDOORS, myLocationRenderMode: MyLocationRenderMode.COMPASS, onCameraIdle: () => _onCameraIdle(), compassEnabled: true, onMapCreated: _onMapCreated, onStyleLoadedCallback: () {}, onCameraTrackingChanged: (MyLocationTrackingMode trackMode) { print("[DEBUG] Track Mode Change ${trackMode.toString()}"); }, onMapIdle: () { print("[DEBUG] On Map Idle"); }, trackCameraPosition: true, initialCameraPosition: const CameraPosition(target: LatLng(0.0, 0.0), zoom: 2.0), ),
onMapIdle isn't called at any point, drag, move or zoom.
Any help?
location: ^3.0.1 mapbox_gl: ^0.7.0