CameraFit
Defines how the camera should fit the bounds or coordinates, depending on which one was provided.
Raises:
-
ValueError–If both
boundsandcoordinatesareNoneor notNone.
Properties
-
bounds(MapLatitudeLongitudeBounds | None) –The bounds which the camera should contain once it is fitted.
-
coordinates(list[MapLatitudeLongitude] | None) –The coordinates which the camera should contain once it is fitted.
-
force_integer_zoom_level(bool) –Whether the zoom level of the resulting fit should be rounded to the
-
max_zoom(Number | None) –The inclusive upper zoom limit used for the resulting fit.
-
min_zoom(Number) – -
padding(PaddingValue) –Adds a constant/pixel-based padding to the normal fit.
Properties#
bounds
class-attribute
instance-attribute
#
bounds: MapLatitudeLongitudeBounds | None = None
The bounds which the camera should contain once it is fitted.
Note
If this is not None, coordinates should be None, and vice versa.
coordinates
class-attribute
instance-attribute
#
coordinates: list[MapLatitudeLongitude] | None = None
The coordinates which the camera should contain once it is fitted.
Note
If this is not None, bounds should be None, and vice versa.
force_integer_zoom_level
class-attribute
instance-attribute
#
force_integer_zoom_level: bool = False
Whether the zoom level of the resulting fit should be rounded to the nearest integer level.
max_zoom
class-attribute
instance-attribute
#
max_zoom: Number | None = None
The inclusive upper zoom limit used for the resulting fit.
If the zoom level calculated for the fit exceeds the max_zoom value,
max_zoom will be used instead.
padding
class-attribute
instance-attribute
#
padding: PaddingValue = field(
default_factory=lambda: zero()
)
Adds a constant/pixel-based padding to the normal fit.