pub struct StyleCamera {
pub center: Option<LatLng>,
pub center_altitude: Option<f64>,
pub zoom: Option<f64>,
pub bearing: Option<f64>,
pub pitch: Option<f64>,
pub roll: Option<f64>,
}Expand description
The camera that a style’s root properties set: center, centerAltitude,
zoom, bearing, pitch and roll. A parsed style sets every member,
to the style spec’s default where the document leaves it out; an empty
style sets none.
Fields§
§center: Option<LatLng>§center_altitude: Option<f64>In meters above sea level.
zoom: Option<f64>§bearing: Option<f64>In degrees.
pitch: Option<f64>In degrees.
roll: Option<f64>In degrees.
Trait Implementations§
Source§impl Clone for StyleCamera
impl Clone for StyleCamera
impl Copy for StyleCamera
Source§impl Debug for StyleCamera
impl Debug for StyleCamera
Source§impl Default for StyleCamera
impl Default for StyleCamera
Source§impl PartialEq for StyleCamera
impl PartialEq for StyleCamera
impl StructuralPartialEq for StyleCamera
Auto Trait Implementations§
impl Forget for StyleCamera
impl Freeze for StyleCamera
impl Move for StyleCamera
impl RefUnwindSafe for StyleCamera
impl Send for StyleCamera
impl Sync for StyleCamera
impl Unpin for StyleCamera
impl UnsafeUnpin for StyleCamera
impl UnwindSafe for StyleCamera
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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