zoomBy method - MapCameraUpdateFactory class - mapview library - Dart API
zoomBy
zoomBy static method
- double factor,
- Point2D origin
Creates an update to zoom map camera by a given factor preserving a given focus point.
Values greater than 1 zoom in map camera, by moving it closer to the ground; less than 1 - zoom out, which moves map camera further.
If factor is zero, negative or not finite, no update will be applied to the map camera.
If the focusPoint is not inside the viewport bounds, then the current principal point will be used.
-
factorZooming factor. -
originPixel location on the screen to use as zoom origin.
Returns MapCameraUpdate. MapCameraUpdate instance.
Implementation
static MapCameraUpdate zoomBy(double factor, Point2D origin) => $prototype.zoomBy(factor, origin);