pub struct Mapbox { /* private fields */ }
Implementations§
source§impl Mapbox
impl Mapbox
sourcepub fn access_token(self, value: impl AsRef<str>) -> Self
pub fn access_token(self, value: impl AsRef<str>) -> Self
Sets the mapbox access token to be used for this mapbox map. Note that
access_token
s are only required when style
(e.g with values: basic,
streets, outdoors, light, dark, satellite, satellite-streets)
and/or a layout layer references the Mapbox server.
sourcepub fn bearing(self, value: f64) -> Self
pub fn bearing(self, value: f64) -> Self
Sets the bearing angle of the map in degrees counter-clockwise from North.
sourcepub fn center(self, value: Center) -> Self
pub fn center(self, value: Center) -> Self
Sets the latitude and longitude of the center of the map.
sourcepub fn pitch(self, value: f64) -> Self
pub fn pitch(self, value: f64) -> Self
Sets the pitch angle of the map in degrees, where 0
means
perpendicular to the surface of the map.
sourcepub fn style(self, value: MapboxStyle) -> Self
pub fn style(self, value: MapboxStyle) -> Self
Sets the style of the map.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Mapbox
impl Send for Mapbox
impl Sync for Mapbox
impl Unpin for Mapbox
impl UnwindSafe for Mapbox
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