Interface Metadata

Metadata for the tile data

interface Metadata {
    attribution: Attribution;
    bounds: WMBounds;
    center: Center;
    description: string;
    encoding?: Encoding;
    extension: string;
    faces: Face[];
    facesbounds: FaceBounds;
    layers: LayersMetaData;
    maxzoom: number;
    minzoom: number;
    name: string;
    s2tilejson: string;
    scheme: Scheme;
    tilestats?: TileStatsMetadata;
    type: SourceType;
    vector_layers: VectorLayer[];
    version: string;
}

Properties

attribution: Attribution

{ ['human readable string']: 'href' }

bounds: WMBounds

WM Tile fetching bounds. Helpful to not make unecessary requests for tiles we know don't exist

center: Center

The center of the data

description: string

The description of the data

encoding?: Encoding

The encoding of the data

extension: string

The extension when requesting a tile

faces: Face[]

List of faces that have data

facesbounds: FaceBounds

S2 Tile fetching bounds. Helpful to not make unecessary requests for tiles we know don't exist

Track layer metadata

maxzoom: number

maxzoom at which to request tiles. [default=27]

minzoom: number

minzoom at which to request tiles. [default=0]

name: string

The name of the data

s2tilejson: string

The version of the s2-tilejson spec

scheme: Scheme

The scheme of the data

tilestats?: TileStatsMetadata

Track tile stats for each face and total overall

The type of the data

vector_layers: VectorLayer[]

Old spec, track basic layer metadata

version: string

The version of the data