Struct staticmap::StaticMapBuilder
source · [−]pub struct StaticMapBuilder { /* private fields */ }
Expand description
Builder for StaticMap.
Implementations
sourceimpl StaticMapBuilder
impl StaticMapBuilder
sourcepub fn padding(self, padding: (u32, u32)) -> Self
pub fn padding(self, padding: (u32, u32)) -> Self
Padding between map features and edge of map in x and y direction. Default is (0, 0).
sourcepub fn zoom(self, zoom: u8) -> Self
pub fn zoom(self, zoom: u8) -> Self
Map zoom, usually between 1-17. Determined based on map features if not specified.
sourcepub fn lat_center(self, coordinate: f64) -> Self
pub fn lat_center(self, coordinate: f64) -> Self
Latitude center of the map. Determined based on map features if not specified.
sourcepub fn lon_center(self, coordinate: f64) -> Self
pub fn lon_center(self, coordinate: f64) -> Self
Longitude center of the map. Determined based on map features if not specified.
sourcepub fn url_template<I: Into<String>>(self, url_template: I) -> Self
pub fn url_template<I: Into<String>>(self, url_template: I) -> Self
URL template, e.g. “https://example.com/{z}/{x}/{y}.png”. Default is “https://a.tile.osm.org/{z}/{x}/{y}.png”.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for StaticMapBuilder
impl Send for StaticMapBuilder
impl Sync for StaticMapBuilder
impl Unpin for StaticMapBuilder
impl UnwindSafe for StaticMapBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more