We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I know when user zoom the map? thanks
The text was updated successfully, but these errors were encountered:
in MapOptions there is a onPositionChanged callback function. I think this is what you are looking for.
Sorry, something went wrong.
#719 - MapController has mapEventStream.
@override void initState() { super.initState(); mapController = MapController(); subscription = mapController.mapEventStream.listen(onMapEvent); } void onMapEvent(MapEvent mapEvent) { if (mapEvent is MapEventWithMove) { if (mapEvent.source == MapEventSource.onDrag || mapEvent.source == MapEventSource.onMultiFinger || mapEvent.source == MapEventSource.doubleTapZoomAnimationController) { if (mapEvent.targetZoom != mapEvent.zoom) { // zoom changed } } } }
No branches or pull requests
How can I know when user zoom the map? thanks
The text was updated successfully, but these errors were encountered: