pub struct TileSetMetadata {
pub tile_matrix_set_id: String,
pub data_type: TileDataType,
pub links: Vec<TileLink>,
pub title: Option<String>,
pub description: Option<String>,
pub attribution: Option<String>,
pub extent: Option<GeographicBoundingBox>,
pub min_tile_matrix: Option<String>,
pub max_tile_matrix: Option<String>,
}Expand description
Metadata describing a specific TileSet — a collection of tiles covering a geographic area at multiple zoom levels using a defined TileMatrixSet.
Fields§
§tile_matrix_set_id: StringIdentifier of the TileMatrixSet used
data_type: TileDataTypeData type served by this TileSet
links: Vec<TileLink>Links to tile resources and documentation
title: Option<String>Human-readable title
description: Option<String>Description of this TileSet
attribution: Option<String>Attribution/copyright notice
extent: Option<GeographicBoundingBox>Geographic bounding box of available tiles
min_tile_matrix: Option<String>Minimum zoom level available
max_tile_matrix: Option<String>Maximum zoom level available
Implementations§
Source§impl TileSetMetadata
impl TileSetMetadata
Sourcepub fn vector_web_mercator(tile_url_template: impl Into<String>) -> Self
pub fn vector_web_mercator(tile_url_template: impl Into<String>) -> Self
Create a minimal TileSetMetadata for vector tiles using WebMercatorQuad.
Sourcepub fn map_web_mercator(tile_url_template: impl Into<String>) -> Self
pub fn map_web_mercator(tile_url_template: impl Into<String>) -> Self
Create a minimal TileSetMetadata for map tiles using WebMercatorQuad.
Sourcepub fn with_extent(self, west: f64, south: f64, east: f64, north: f64) -> Self
pub fn with_extent(self, west: f64, south: f64, east: f64, north: f64) -> Self
Add a geographic extent to this TileSetMetadata.
Sourcepub fn with_zoom_range(self, min_zoom: u8, max_zoom: u8) -> Self
pub fn with_zoom_range(self, min_zoom: u8, max_zoom: u8) -> Self
Set the min/max tile matrix zoom levels.
Trait Implementations§
Source§impl Clone for TileSetMetadata
impl Clone for TileSetMetadata
Source§fn clone(&self) -> TileSetMetadata
fn clone(&self) -> TileSetMetadata
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 moreSource§impl Debug for TileSetMetadata
impl Debug for TileSetMetadata
Source§impl<'de> Deserialize<'de> for TileSetMetadata
impl<'de> Deserialize<'de> for TileSetMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TileSetMetadata
impl RefUnwindSafe for TileSetMetadata
impl Send for TileSetMetadata
impl Sync for TileSetMetadata
impl Unpin for TileSetMetadata
impl UnsafeUnpin for TileSetMetadata
impl UnwindSafe for TileSetMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more