pub struct Mercator { /* private fields */ }Implementations§
Source§impl Mercator
impl Mercator
Sourcepub fn with_size(tile_size: usize) -> Mercator
pub fn with_size(tile_size: usize) -> Mercator
Create a new Mercator with custom tile size. Tile sizes must be a power of two (256, 512, and so on).
Sourcepub fn from_ll_to_subpixel<T: Coord>(&self, ll: &T, zoom: usize) -> Option<T>
pub fn from_ll_to_subpixel<T: Coord>(&self, ll: &T, zoom: usize) -> Option<T>
Projects a given LL coordinate at a specific zoom level into decimal sub-pixel screen-coordinates.
Zoom level is between 0 and 29 (inclusive). Every other zoom level will return a None.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mercator
impl RefUnwindSafe for Mercator
impl Send for Mercator
impl Sync for Mercator
impl Unpin for Mercator
impl UnwindSafe for Mercator
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