pub enum StyleProjection {
Mercator,
Equirectangular,
Globe,
VerticalPerspective,
}Expand description
Top-level style-owned projection selection.
Variants§
Mercator
Default Web Mercator map projection.
Equirectangular
Equirectangular / Plate Carree planar projection.
Globe
Globe / geocentric projection.
VerticalPerspective
Near-sided vertical perspective projection.
Implementations§
Source§impl StyleProjection
impl StyleProjection
Sourcepub fn to_camera_projection(self) -> CameraProjection
pub fn to_camera_projection(self) -> CameraProjection
Convert the style-owned projection to the camera-facing projection.
Trait Implementations§
Source§impl Clone for StyleProjection
impl Clone for StyleProjection
Source§fn clone(&self) -> StyleProjection
fn clone(&self) -> StyleProjection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StyleProjection
impl Debug for StyleProjection
Source§impl Default for StyleProjection
impl Default for StyleProjection
Source§fn default() -> StyleProjection
fn default() -> StyleProjection
Returns the “default value” for a type. Read more
Source§impl PartialEq for StyleProjection
impl PartialEq for StyleProjection
impl Copy for StyleProjection
impl Eq for StyleProjection
impl StructuralPartialEq for StyleProjection
Auto Trait Implementations§
impl Freeze for StyleProjection
impl RefUnwindSafe for StyleProjection
impl Send for StyleProjection
impl Sync for StyleProjection
impl Unpin for StyleProjection
impl UnsafeUnpin for StyleProjection
impl UnwindSafe for StyleProjection
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