Skip to content

onMapIdle - is it ever called? #357

@keehoo

Description

@keehoo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions