pub struct CameraOptions {
pub center: Option<LatLng>,
pub center_altitude: Option<f64>,
pub padding: Option<EdgeInsets>,
pub anchor: Option<ScreenPoint>,
pub zoom: Option<f64>,
pub bearing: Option<f64>,
pub pitch: Option<f64>,
pub roll: Option<f64>,
pub field_of_view: Option<f64>,
}Expand description
A camera, with only the members that fields selects.
See mln_camera_options in the
C API reference.
Fields§
§center: Option<LatLng>§center_altitude: Option<f64>The altitude of the center, in meters above sea level.
padding: Option<EdgeInsets>Insets from the map’s edges. The camera centers within the rest.
anchor: Option<ScreenPoint>The screen point that a change to the zoom, bearing, or pitch keeps in
place. A center overrides it.
zoom: Option<f64>§bearing: Option<f64>The rotation from north, in degrees.
pitch: Option<f64>The tilt toward the horizon, in degrees. 0 looks straight down.
roll: Option<f64>The roll, in degrees.
field_of_view: Option<f64>The vertical field of view, in degrees.
Trait Implementations§
Source§impl Clone for CameraOptions
impl Clone for CameraOptions
Source§fn clone(&self) -> CameraOptions
fn clone(&self) -> CameraOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CameraOptions
Source§impl Debug for CameraOptions
impl Debug for CameraOptions
Source§impl Default for CameraOptions
impl Default for CameraOptions
Source§fn default() -> CameraOptions
fn default() -> CameraOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for CameraOptions
impl PartialEq for CameraOptions
impl StructuralPartialEq for CameraOptions
Auto Trait Implementations§
impl Freeze for CameraOptions
impl RefUnwindSafe for CameraOptions
impl Send for CameraOptions
impl Sync for CameraOptions
impl Unpin for CameraOptions
impl UnsafeUnpin for CameraOptions
impl UnwindSafe for CameraOptions
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