cameraForCoordinatesCameraOptions method
Future<CameraOptions>
cameraForCoordinatesCameraOptions(
- List<
Point> coordinates, - CameraOptions camera,
- ScreenBox box
Convenience method that adjusts the provided camera options
object for given parameters.
Returns the provided camera
options with zoom adjusted to fit coordinates
into the box
, so that coordinates
on the left,
top and right of the effective camera
center at the principal point of the projection (defined by padding
) fit into the box
.
Returns the provided camera
options object unchanged upon an error.
Note that this method may fail if the principal point of the projection is not inside the box
or
if there is no sufficient screen space, defined by principal point and the box
, to fit the geometry.
Implementation
Future<CameraOptions> cameraForCoordinatesCameraOptions(
List<Point> coordinates, CameraOptions camera, ScreenBox box) =>
_cameraManager.cameraForCoordinatesCameraOptions(
coordinates, camera, box);