pub struct TilePyramid { /* private fields */ }Expand description
Tile pyramid for multi-resolution data.
Implementations§
Source§impl TilePyramid
impl TilePyramid
Sourcepub fn web_mercator(max_zoom: u8) -> Result<Self>
pub fn web_mercator(max_zoom: u8) -> Result<Self>
Create a standard Web Mercator pyramid.
Sourcepub fn add_matrix(&mut self, matrix: TileMatrix)
pub fn add_matrix(&mut self, matrix: TileMatrix)
Add a tile matrix.
Sourcepub fn get_matrix(&self, identifier: &str) -> Option<&TileMatrix>
pub fn get_matrix(&self, identifier: &str) -> Option<&TileMatrix>
Get a tile matrix by identifier.
Sourcepub fn tiles_for_zoom(&self, zoom: u8) -> Vec<TileCoordinate>
pub fn tiles_for_zoom(&self, zoom: u8) -> Vec<TileCoordinate>
Get all tile coordinates for a zoom level.
Sourcepub fn tiles_for_bbox(
&self,
bbox: &BoundingBox,
zoom: u8,
) -> Result<Vec<TileCoordinate>>
pub fn tiles_for_bbox( &self, bbox: &BoundingBox, zoom: u8, ) -> Result<Vec<TileCoordinate>>
Get all tile coordinates that intersect a bounding box.
Sourcepub fn zoom_levels(&self) -> (u8, u8)
pub fn zoom_levels(&self) -> (u8, u8)
Get the zoom levels.
Auto Trait Implementations§
impl Freeze for TilePyramid
impl RefUnwindSafe for TilePyramid
impl Send for TilePyramid
impl Sync for TilePyramid
impl Unpin for TilePyramid
impl UnsafeUnpin for TilePyramid
impl UnwindSafe for TilePyramid
Blanket Implementations§
impl<T> Allocation for T
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