pub struct MapboxTileJSONMetadata {Show 20 fields
pub tilejson: String,
pub tiles: Vec<String>,
pub vector_layers: Vec<VectorLayer>,
pub attribution: Option<String>,
pub bounds: Option<LonLatBounds>,
pub center: Option<[f64; 3]>,
pub data: Option<Vec<String>>,
pub description: Option<String>,
pub fillzoom: Option<u8>,
pub grids: Option<Vec<String>>,
pub legend: Option<String>,
pub maxzoom: Option<u8>,
pub minzoom: Option<u8>,
pub name: Option<String>,
pub scheme: Option<Scheme>,
pub template: Option<String>,
pub version: Option<String>,
pub type: Option<SourceType>,
pub extension: Option<String>,
pub encoding: Option<Encoding>,
}Expand description
Fields§
§tilejson: StringVersion of the TileJSON spec used. Matches the pattern: \d+\.\d+\.\d+\w?[\w\d]*.
tiles: Vec<String>Array of tile URL templates.
vector_layers: Vec<VectorLayer>Array of vector layer metadata.
attribution: Option<String>Attribution string.
bounds: Option<LonLatBounds>Bounding box array [west, south, east, north].
center: Option<[f64; 3]>Center coordinate array [longitude, latitude, zoom].
data: Option<Vec<String>>Array of data source URLs.
description: Option<String>Description string.
fillzoom: Option<u8>Fill zoom level. Must be between 0 and 30.
grids: Option<Vec<String>>Array of UTFGrid URL templates.
legend: Option<String>Legend of the tileset.
maxzoom: Option<u8>Maximum zoom level. Must be between 0 and 30.
minzoom: Option<u8>Minimum zoom level. Must be between 0 and 30.
name: Option<String>Name of the tileset.
scheme: Option<Scheme>Tile scheme, e.g., xyz or tms.
template: Option<String>Template for interactivity.
version: Option<String>Version of the tileset. Matches the pattern: \d+\.\d+\.\d+\w?[\w\d]*.
type: Option<SourceType>Added type because it may be included
extension: Option<String>Extension of the tileset.
encoding: Option<Encoding>Encoding of the tileset.
Implementations§
Source§impl MapboxTileJSONMetadata
impl MapboxTileJSONMetadata
Sourcepub fn to_metadata(&self) -> Metadata
pub fn to_metadata(&self) -> Metadata
Converts a MapboxTileJSONMetadata to a Metadata
Trait Implementations§
Source§impl Clone for MapboxTileJSONMetadata
impl Clone for MapboxTileJSONMetadata
Source§fn clone(&self) -> MapboxTileJSONMetadata
fn clone(&self) -> MapboxTileJSONMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more