Udostępnij za pośrednictwem


MapTileSet Class

Definition

Metadata for a tileset in the TileJSON format.

public class MapTileSet
type MapTileSet = class
Public Class MapTileSet
Inheritance
MapTileSet

Properties

BoundingBox

The maximum extent of available map tiles. Bounds MUST define an area covered by all zoom levels. The bounds are represented in WGS:84 latitude and longitude values, in the order left, bottom, right, top. Values may be integers or floating point numbers.

CenterTileIndex

The default location of the tileset in the form [longitude, latitude, zoom]. The zoom level MUST be between minzoom and maxzoom. Implementations can use this value to set the default location.

CopyrightAttribution

Copyright attribution to be displayed on the map. Implementations MAY decide to treat this as HTML or literal text. For security reasons, make absolutely sure that this field can't be abused as a vector for XSS or beacon tracking.

GeoJsonDataFiles

An array of data files in GeoJSON format.

MapTileLegend

A legend to be displayed with the map. Implementations MAY decide to treat this as HTML or literal text. For security reasons, make absolutely sure that this field can't be abused as a vector for XSS or beacon tracking.

MaxZoomLevel

The maximum zoom level.

MinZoomLevel

The minimum zoom level.

TileEndpoints

An array of tile endpoints. If multiple endpoints are specified, clients may use any combination of endpoints. All endpoints MUST return the same content for the same URL. The array MUST contain at least one endpoint.

TileJsonVersion

Describes the version of the TileJSON spec that is implemented by this JSON object.

TileScheme

Default: xyz. Either xyz; or tms;. Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed.

TileSetDescription

Text description of the tileset. The description can contain any legal character. Implementations SHOULD NOT interpret the description as HTML.

TileSetName

A name describing the tileset. The name can contain any legal character. Implementations SHOULD NOT interpret the name as HTML.

TileSetVersion

A semver.org style version number for the tiles contained within the tileset. When changes across tiles are introduced, the minor version MUST change.

Applies to