Struct staticmap::StaticMapBuilder [−][src]
Builder for StaticMap
.
Implementations
impl StaticMapBuilder
[src]
pub fn width(&mut self, value: u32) -> &mut Self
[src]
Image width in pixels. Default is 300.
pub fn height(&mut self, value: u32) -> &mut Self
[src]
Image height in pixels. Default is 300.
pub fn padding(&mut self, value: (u32, u32)) -> &mut Self
[src]
Minimal distance between map features and map border in pixels. Given as a tuple of (x, y). Default is (0, 0).
pub fn zoom(&mut self, value: u8) -> &mut Self
[src]
Map zoom, usually between 1-17. Default is calculated based on features if not specified.
pub fn lat_center(&mut self, value: f64) -> &mut Self
[src]
Latitude center of map. Default is calculated based on features if not specified.
pub fn lon_center(&mut self, value: f64) -> &mut Self
[src]
Longitude center of map. Default is calculated based on features if not specified.
pub fn url_template<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
[src]
URL template. e.g. “https://a.tile.osm.org/{z}/{x}/{y}.png”. Default is used if not specified.
pub fn tile_size(&mut self, value: u32) -> &mut Self
[src]
Tile size. Default is 256.
pub fn build(&self) -> Result<StaticMap, String>
[src]
Trait Implementations
impl Clone for StaticMapBuilder
[src]
fn clone(&self) -> StaticMapBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for StaticMapBuilder
[src]
fn default() -> StaticMapBuilder
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,