-
Notifications
You must be signed in to change notification settings - Fork 185
Closed
Description
I want to have a limit for the camera zoom, something like maxZoom = 20 and minZoom = 7.
So far I've forced this behaviour in the onCameraChangeListener event by doing this:
await mapboxMap!.getCameraState().then((value) {
if (zoom >= minZoom) {
zoom = value.zoom;
} else {
zoom = minZoom;
mapboxMap!.setCamera(CameraOptions(zoom: minZoom));
}
});But it doesn't feel "clean", because every time I try to go over the threshold, the map starts to "vibrate". Is there a better way to do this? Or am I missing something?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels