pub struct Mapbox { /* private fields */ }Implementations§
Source§impl Mapbox
impl Mapbox
Sourcepub fn access_token(self, value: impl AsRef<str>) -> Mapbox
pub fn access_token(self, value: impl AsRef<str>) -> Mapbox
Sets the mapbox access token to be used for this mapbox map. Note that
access_tokens 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) -> Mapbox
pub fn bearing(self, value: f64) -> Mapbox
Sets the bearing angle of the map in degrees counter-clockwise from North.
Sourcepub fn center(self, value: Center) -> Mapbox
pub fn center(self, value: Center) -> Mapbox
Sets the latitude and longitude of the center of the map.
Sourcepub fn pitch(self, value: f64) -> Mapbox
pub fn pitch(self, value: f64) -> Mapbox
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) -> Mapbox
pub fn style(self, value: MapboxStyle) -> Mapbox
Sets the style of the map.
Trait Implementations§
Source§impl Serialize for Mapbox
impl Serialize for Mapbox
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Mapbox
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