New issue
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
add onCameraIdle method like google map #759
Comments
In #719 you can listen to events StreamSubscription<MapEvent> subscription;
@override
void initState() {
super.initState();
mapController = MapController();
subscription = mapController.mapEventStream.listen(onMapEvent);
}
void onMapEvent(MapEvent mapEvent) {
if (mapEvent is MapEventMoveEnd) {
// do something
}
}
@override
void dispose() {
subscription?.cancel();
super.dispose();
} |
HI @maRci002 |
Hi @masoudpaidar You can check MapEvent on here and here Hope it helps.. |
@jiazeh is right. I'll soon finish that PR (little docs + fix when no event triggered when mapController.fitBounds called), I was a little busy :) |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
There is onPositionChanged option in flutter_map but it gets called every time the position is changing, which is a lot. As soon as the user touched the screen, the onPositionChanged gets called until the user stops touching the screen,
but there is no option to call a method when camera movement has ended like a onCameraIdle in the google map
The text was updated successfully, but these errors were encountered: