Struct slippy_map_tiles::Metatile
[−]
[src]
pub struct Metatile { /* fields omitted */ }Metatiles are NxN tiles
Methods
impl Metatile[src]
fn new(scale: u8, zoom: u8, x: u32, y: u32) -> Option<Self>[src]
fn scale(&self) -> u8[src]
fn zoom(&self) -> u8[src]
fn size(&self) -> u8[src]
What is the width or height of this metatile. For small zoom numbers (e.g. z1), there will
not be the full scale tiles across.
fn centre_point(&self) -> LatLon[src]
Returns the LatLon for the centre of this metatile.
fn center_point(&self) -> LatLon[src]
Returns the LatLon for the centre of this metatile.
fn nw_corner(&self) -> LatLon[src]
Returns the LatLon of the top left, i.e. north west corner, of this metatile.
fn ne_corner(&self) -> LatLon[src]
Returns the LatLon of the top right, i.e. north east corner, of this metatile.
fn sw_corner(&self) -> LatLon[src]
Returns the LatLon of the bottom left, i.e. south west corner, of this metatile.
fn se_corner(&self) -> LatLon[src]
Returns the LatLon of the bottom right, i.e. south east corner, of this metatile.
fn x(&self) -> u32[src]
X value of this metatile
fn y(&self) -> u32[src]
Y value of metatile
fn tiles(&self) -> Vec<Tile>[src]
fn all(scale: u8) -> MetatilesIterator[src]
Trait Implementations
impl PartialEq for Metatile[src]
fn eq(&self, __arg_0: &Metatile) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Metatile) -> bool[src]
This method tests for !=.
impl Eq for Metatile[src]
impl Debug for Metatile[src]
impl Clone for Metatile[src]
fn clone(&self) -> Metatile[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for Metatile[src]
impl Hash for Metatile[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)[src]
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more