setViewportZoom method
This method is used to set the zoom level of the viewport.
The 'animate' parameter is used to animate the zoom transition.
NOTE: The focal point deafults to the current viewport offset if not provided and uses cursor position from mouse events.
Implementation
void setViewportZoom(
double zoom, {
bool animate = true,
bool isHandled = false,
}) {
eventBus.emit(
ViewportZoomEvent(
id: const Uuid().v4(),
zoom,
animate: animate,
isHandled: isHandled,
),
);
lodLevel = _computeLODLevel(_viewportZoom);
}