TileId¶
Slippy-map tile id (z/x/y), quadkey-convertible (Bing scheme).
z¶
u8
Zoom level.
x¶
u32
Tile column.
y¶
u32
Tile row.
quadkey()¶
pub fn quadkey(&self) -> String
The tile's quadkey string.
from_quadkey()¶
pub fn from_quadkey(qk: &str) -> Result<TileId, CoreError>
Parse a tile from a quadkey string.
Returns [CoreError::InvalidQuadkey] if qk contains a character
other than 0-3 or is longer than 30 digits.
bbox()¶
pub fn bbox(&self) -> BBox
Tile bounds in lon/lat degrees (web-mercator tiling).
children()¶
pub fn children(&self) -> Vec<TileId>
The four child tiles at z + 1.