pub struct Camera {
pub center: LatLng,
pub center_altitude: f64,
pub padding: EdgeInsets,
pub zoom: f64,
pub bearing: f64,
pub pitch: f64,
pub roll: f64,
pub field_of_view: f64,
}Expand description
A map’s whole camera.
See mln_camera in the
C API reference.
Fields§
§center: LatLng§center_altitude: f64The altitude of the center, in meters above sea level.
padding: EdgeInsetsInsets from the map’s edges. The camera centers within the rest.
zoom: f64§bearing: f64The rotation from north, in degrees.
pitch: f64The tilt toward the horizon, in degrees. 0 looks straight down.
roll: f64The roll, in degrees.
field_of_view: f64The vertical field of view, in degrees.
Implementations§
Trait Implementations§
impl Copy for Camera
impl StructuralPartialEq for Camera
Auto Trait Implementations§
impl Freeze for Camera
impl RefUnwindSafe for Camera
impl Send for Camera
impl Sync for Camera
impl Unpin for Camera
impl UnsafeUnpin for Camera
impl UnwindSafe for Camera
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more