pub struct ExprCamera {
pub zoom: f64,
pub bearing: f64,
pub pitch: f64,
pub roll: f64,
pub field_of_view: f64,
pub center: LatLng,
pub center_altitude: f64,
pub viewport_width: f64,
pub viewport_height: f64,
pub meters_per_pixel: f64,
pub is_globe: bool,
}Expand description
Read-only camera state supplied to ExprCapabilities::CAMERA overloads.
Fields§
§zoom: f64§bearing: f64Bearing in degrees clockwise from north.
pitch: f64Pitch in degrees from nadir.
roll: f64Roll in degrees.
field_of_view: f64Vertical field of view in degrees.
center: LatLngCamera center in WGS84 degrees.
center_altitude: f64Center altitude in meters above sea level.
viewport_width: f64Viewport width in logical pixels.
viewport_height: f64Viewport height in logical pixels.
meters_per_pixel: f64Ground resolution at the camera center in meters per logical pixel.
is_globe: boolWhether the map is currently rendering in globe projection.
Trait Implementations§
Source§impl Clone for ExprCamera
impl Clone for ExprCamera
impl Copy for ExprCamera
Source§impl Debug for ExprCamera
impl Debug for ExprCamera
Source§impl Default for ExprCamera
impl Default for ExprCamera
Source§impl PartialEq for ExprCamera
impl PartialEq for ExprCamera
impl StructuralPartialEq for ExprCamera
Auto Trait Implementations§
impl Forget for ExprCamera
impl Freeze for ExprCamera
impl Move for ExprCamera
impl RefUnwindSafe for ExprCamera
impl Send for ExprCamera
impl Sync for ExprCamera
impl Unpin for ExprCamera
impl UnsafeUnpin for ExprCamera
impl UnwindSafe for ExprCamera
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