pub struct TileMatrixSet {
pub identifier: String,
pub crs: String,
pub matrices: Vec<TileMatrix>,
}Expand description
Tile matrix set definition
Fields§
§identifier: StringIdentifier (e.g., “WebMercatorQuad”)
crs: StringSupported CRS
matrices: Vec<TileMatrix>Tile matrices (one per zoom level)
Implementations§
Source§impl TileMatrixSet
impl TileMatrixSet
Sourcepub fn web_mercator_quad() -> Self
pub fn web_mercator_quad() -> Self
Create Web Mercator tile matrix set
Sourcepub fn world_crs84_quad() -> Self
pub fn world_crs84_quad() -> Self
Create World CRS84 tile matrix set
Sourcepub fn get_matrix(&self, identifier: &str) -> Option<&TileMatrix>
pub fn get_matrix(&self, identifier: &str) -> Option<&TileMatrix>
Get tile matrix by identifier
Trait Implementations§
Source§impl Clone for TileMatrixSet
impl Clone for TileMatrixSet
Source§fn clone(&self) -> TileMatrixSet
fn clone(&self) -> TileMatrixSet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TileMatrixSet
impl RefUnwindSafe for TileMatrixSet
impl Send for TileMatrixSet
impl Sync for TileMatrixSet
impl Unpin for TileMatrixSet
impl UnsafeUnpin for TileMatrixSet
impl UnwindSafe for TileMatrixSet
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