Skip to main content

Sources

Where a layer's tiles come from — network, file, cache or another source. Created with kind source.

TypeClass
"assets"AssetTileDataSource
"combined"CombinedTileDataSource
"contour"ContourTileDataSource
"geojson"GeoJSONVectorTileDataSource
"http"HTTPTileDataSource
"local"LocalVectorDataSource
"maptiler"MapTilerOnlineTileDataSource
"mbtiles"MBTilesTileDataSource
"memory-cache"MemoryCacheTileDataSource
"merged-mbvt"MergedMBVTTileDataSource
"multi"MultiTileDataSource
"ordered"OrderedTileDataSource
"persistent-cache"PersistentCacheTileDataSource
"pmtiles"PMTilesTileDataSource
"point-detail"PointDetailTileDataSource

"assets" — AssetTileDataSource​

{"type": "assets", "minZoom": …, "maxZoom": …, "path": …}
KeyTypeAlways requiredNotes
minZoomintegeryesdefaults to 0
maxZoomintegeryesdefaults to 24
pathstringyes

Inherited from TileDataSource:

PropertyTypeAccessDescription
dataExtentstruct massif::MapBoundsread-onlyReturns the extent of the tiles in this data source. The bounds are in coordinate system of the projection of the data source.
maxOverzoomLevelintegerread/writeGets the current maximum overzoom level for this datasource. Over it the datasource will not be "drawn"
maxZoomintegerread-onlyReturns the maximum zoom level supported by this data source.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns a copy of the data source meta data map; changes to it are not reflected in the source. The map is attached to every loaded tile, e.g. "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder. A wrapper source with no map of its own answers with its wrapped source's.
minZoomintegerread-onlyReturns the minimum zoom level supported by this data source.
projectionobject projections.Projectionread-onlyReturns the projection of this tile source.
MethodArgumentsReturns
getMetaDataElementkey: stringjson
loadTiletile: tileobject
setMetaDataElementkey: string, value: jsonvoid

"combined" — CombinedTileDataSource​

{"type": "combined", "source": …, "source2": …, "zoomLevel": …}
KeyTypeAlways requiredNotes
sourceobject std::shared_ptr<TileDataSource>yesan id of kind source, or an inline spec
source2object std::shared_ptr<TileDataSource>yesan id of kind source, or an inline spec
zoomLevelintegeryesdefaults to 0

Inherited from TileDataSource:

PropertyTypeAccessDescription
dataExtentstruct massif::MapBoundsread-onlyReturns the extent of the tiles in this data source. The bounds are in coordinate system of the projection of the data source.
maxOverzoomLevelintegerread/writeGets the current maximum overzoom level for this datasource. Over it the datasource will not be "drawn"
maxZoomintegerread-onlyReturns the maximum zoom level supported by this data source.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns a copy of the data source meta data map; changes to it are not reflected in the source. The map is attached to every loaded tile, e.g. "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder. A wrapper source with no map of its own answers with its wrapped source's.
minZoomintegerread-onlyReturns the minimum zoom level supported by this data source.
projectionobject projections.Projectionread-onlyReturns the projection of this tile source.
MethodArgumentsReturns
getMetaDataElementkey: stringjson
loadTiletile: tileobject
setMetaDataElementkey: string, value: jsonvoid

"contour" — ContourTileDataSource​

{"type": "contour", "source": …}
KeyTypeAlways requiredNotes
sourceobject std::shared_ptr<TileDataSource>yesan id of kind source, or an inline spec
PropertyTypeAccessDescription
baseIntervalnumberread/writeReturns the base contour interval in meters.
labelIntervalnumberread/writeReturns the contour interval used for label stubs.
labelStubsEnabledbooleanread/writeReturns whether only short label stubs are generated instead of full contour lines.
layerNamestringread/writeReturns the name of the generated vector tile layer.
minVisibleZoomintegerread/writeReturns the minimum zoom at which contour geometry is generated.
resolutionintegerread/writeReturns the target grid resolution used for contour tracing.
seamlessEdgesEnabledbooleanread/writeReturns whether seamless tile edges are enabled.
simplifyTolerancenumberread/writeReturns the simplification tolerance in tile pixels.
terrainOptionsobject std::shared_ptr<massif::TerrainOptions>read/writeReturns the terrain options whose elevation manager the label stubs read.

Inherited from TileDataSource:

PropertyTypeAccessDescription
dataExtentstruct massif::MapBoundsread-onlyReturns the extent of the tiles in this data source. The bounds are in coordinate system of the projection of the data source.
maxOverzoomLevelintegerread/writeGets the current maximum overzoom level for this datasource. Over it the datasource will not be "drawn"
maxZoomintegerread-onlyReturns the maximum zoom level supported by this data source.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns a copy of the data source meta data map; changes to it are not reflected in the source. The map is attached to every loaded tile, e.g. "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder. A wrapper source with no map of its own answers with its wrapped source's.
minZoomintegerread-onlyReturns the minimum zoom level supported by this data source.
projectionobject projections.Projectionread-onlyReturns the projection of this tile source.
MethodArgumentsReturns
getMetaDataElementkey: stringjson
loadTiletile: tileobject
setMetaDataElementkey: string, value: jsonvoid

"geojson" — GeoJSONVectorTileDataSource​

{"type": "geojson", "minZoom": …, "maxZoom": …}
KeyTypeAlways requiredNotes
minZoomintegeryesdefaults to 0
maxZoomintegeryesdefaults to 14
PropertyTypeAccessDescription
defaultLayerBuffernumberread/writeReturns the default layer buffer in tile pixels.
simplifyTolerancenumberread/writeReturns the simplification tolerance in tile pixels.

Inherited from TileDataSource:

PropertyTypeAccessDescription
dataExtentstruct massif::MapBoundsread-onlyReturns the extent of the tiles in this data source. The bounds are in coordinate system of the projection of the data source.
maxOverzoomLevelintegerread/writeGets the current maximum overzoom level for this datasource. Over it the datasource will not be "drawn"
maxZoomintegerread-onlyReturns the maximum zoom level supported by this data source.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns a copy of the data source meta data map; changes to it are not reflected in the source. The map is attached to every loaded tile, e.g. "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder. A wrapper source with no map of its own answers with its wrapped source's.
minZoomintegerread-onlyReturns the minimum zoom level supported by this data source.
projectionobject projections.Projectionread-onlyReturns the projection of this tile source.
MethodArgumentsReturns
addFeaturelayer: int, feature: jsonvoid
createLayername: stringint
deleteLayerlayer: intvoid
getMetaDataElementkey: stringjson
loadTiletile: tileobject
removeFeaturelayer: int, id: jsonvoid
setLayerGeoJSONlayer: int, geoJson: jsonvoid
setMetaDataElementkey: string, value: jsonvoid
updateFeaturelayer: int, feature: jsonvoid

"http" — HTTPTileDataSource​

{"type": "http", "minZoom": …, "maxZoom": …, "url": …}
KeyTypeAlways requiredNotes
minZoomintegeryesdefaults to 0
maxZoomintegeryesdefaults to 24
urlstringyes
PropertyTypeAccessDescription
HTTPHeadersstruct std::map<std::string, std::string>read/writeReturns the current set of HTTP headers used. Initially this set is empty and can be changed with setHTTPHeaders.
TMSSchemebooleanread/writeReturns true/false based whether the TMS tiling scheme is used.
baseURLstringread/writeReturns the base URL template containing tags.
maxAgeHeaderCheckbooleanread/writeReturns true/false based on whether the max-age header check is used. If this is enabled, SDK will automatically refresh the tiles when tiles have expired.
subdomainsstruct std::vector<std::string>read/writeReturns the subdomains for {s} tag. The default is ["a", "b", "c", "d"].
timeoutintegerread/writeReturns the current timeout value.

Inherited from TileDataSource:

PropertyTypeAccessDescription
dataExtentstruct massif::MapBoundsread-onlyReturns the extent of the tiles in this data source. The bounds are in coordinate system of the projection of the data source.
maxOverzoomLevelintegerread/writeGets the current maximum overzoom level for this datasource. Over it the datasource will not be "drawn"
maxZoomintegerread-onlyReturns the maximum zoom level supported by this data source.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns a copy of the data source meta data map; changes to it are not reflected in the source. The map is attached to every loaded tile, e.g. "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder. A wrapper source with no map of its own answers with its wrapped source's.
minZoomintegerread-onlyReturns the minimum zoom level supported by this data source.
projectionobject projections.Projectionread-onlyReturns the projection of this tile source.
MethodArgumentsReturns
getMetaDataElementkey: stringjson
loadTiletile: tileobject
setMetaDataElementkey: string, value: jsonvoid

"local" — LocalVectorDataSource​

{"type": "local", "projection": …, "spatialIndexType": …}
{"type": "local", "projection": …}
KeyTypeAlways requiredNotes
projectionobject std::shared_ptr<Projection>yesan id of kind projection, or an inline spec
spatialIndexTypeenumno
PropertyTypeAccessDescription
geometrySimplifierobject geometry.GeometrySimplifierread/writeReturns the active geometry simplifier of the data source.

Inherited from VectorDataSource:

PropertyTypeAccessDescription
dataExtentstruct massif::MapBoundsread-onlyReturns the extent of the data of this data source. The bounds are in coordinate system of the projection of the data source.
projectionobject projections.Projectionread-onlyReturns the projection used by this data source.
MethodArgumentsReturns
addelement: handlevoid
clear—void
removeelement: handlebool

"maptiler" — MapTilerOnlineTileDataSource​

{"type": "maptiler", "key": …}
KeyTypeAlways requiredNotes
keystringyes
PropertyTypeAccessDescription
customServiceURLstringread/writeReturns the custom backend service URL.
timeoutintegerread/writeReturns the current timeout value.

Inherited from TileDataSource:

PropertyTypeAccessDescription
dataExtentstruct massif::MapBoundsread-onlyReturns the extent of the tiles in this data source. The bounds are in coordinate system of the projection of the data source.
maxOverzoomLevelintegerread/writeGets the current maximum overzoom level for this datasource. Over it the datasource will not be "drawn"
maxZoomintegerread-onlyReturns the maximum zoom level supported by this data source.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns a copy of the data source meta data map; changes to it are not reflected in the source. The map is attached to every loaded tile, e.g. "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder. A wrapper source with no map of its own answers with its wrapped source's.
minZoomintegerread-onlyReturns the minimum zoom level supported by this data source.
projectionobject projections.Projectionread-onlyReturns the projection of this tile source.
MethodArgumentsReturns
getMetaDataElementkey: stringjson
loadTiletile: tileobject
setMetaDataElementkey: string, value: jsonvoid

"mbtiles" — MBTilesTileDataSource​

{"type": "mbtiles", "minZoom": …, "maxZoom": …, "path": …, "scheme": …}
{"type": "mbtiles", "minZoom": …, "maxZoom": …, "path": …}
{"type": "mbtiles", "path": …}
KeyTypeAlways requiredNotes
minZoomintegernodefaults to 0
maxZoomintegernodefaults to 24
pathstringyes
schemeenumno

Inherited from TileDataSource:

PropertyTypeAccessDescription
dataExtentstruct massif::MapBoundsread-onlyReturns the extent of the tiles in this data source. The bounds are in coordinate system of the projection of the data source.
maxOverzoomLevelintegerread/writeGets the current maximum overzoom level for this datasource. Over it the datasource will not be "drawn"
maxZoomintegerread-onlyReturns the maximum zoom level supported by this data source.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns a copy of the data source meta data map; changes to it are not reflected in the source. The map is attached to every loaded tile, e.g. "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder. A wrapper source with no map of its own answers with its wrapped source's.
minZoomintegerread-onlyReturns the minimum zoom level supported by this data source.
projectionobject projections.Projectionread-onlyReturns the projection of this tile source.
MethodArgumentsReturns
getMetaDataElementkey: stringjson
loadTiletile: tileobject
setMetaDataElementkey: string, value: jsonvoid

"memory-cache" — MemoryCacheTileDataSource​

{"type": "memory-cache", "source": …}
KeyTypeAlways requiredNotes
sourceobject std::shared_ptr<TileDataSource>yesan id of kind source, or an inline spec

Inherited from CacheTileDataSource:

PropertyTypeAccessDescription
capacityintegerread/write
dataSourceobject datasources.TileDataSourceread-onlyReturns the original data source that the cache uses.

Inherited from TileDataSource:

PropertyTypeAccessDescription
dataExtentstruct massif::MapBoundsread-onlyReturns the extent of the tiles in this data source. The bounds are in coordinate system of the projection of the data source.
maxOverzoomLevelintegerread/writeGets the current maximum overzoom level for this datasource. Over it the datasource will not be "drawn"
maxZoomintegerread-onlyReturns the maximum zoom level supported by this data source.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns a copy of the data source meta data map; changes to it are not reflected in the source. The map is attached to every loaded tile, e.g. "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder. A wrapper source with no map of its own answers with its wrapped source's.
minZoomintegerread-onlyReturns the minimum zoom level supported by this data source.
projectionobject projections.Projectionread-onlyReturns the projection of this tile source.
MethodArgumentsReturns
getMetaDataElementkey: stringjson
loadTiletile: tileobject
setMetaDataElementkey: string, value: jsonvoid

"merged-mbvt" — MergedMBVTTileDataSource​

{"type": "merged-mbvt", "source": …, "source2": …}
KeyTypeAlways requiredNotes
sourceobject std::shared_ptr<TileDataSource>yesan id of kind source, or an inline spec
source2object std::shared_ptr<TileDataSource>yesan id of kind source, or an inline spec

Inherited from TileDataSource:

PropertyTypeAccessDescription
dataExtentstruct massif::MapBoundsread-onlyReturns the extent of the tiles in this data source. The bounds are in coordinate system of the projection of the data source.
maxOverzoomLevelintegerread/writeGets the current maximum overzoom level for this datasource. Over it the datasource will not be "drawn"
maxZoomintegerread-onlyReturns the maximum zoom level supported by this data source.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns a copy of the data source meta data map; changes to it are not reflected in the source. The map is attached to every loaded tile, e.g. "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder. A wrapper source with no map of its own answers with its wrapped source's.
minZoomintegerread-onlyReturns the minimum zoom level supported by this data source.
projectionobject projections.Projectionread-onlyReturns the projection of this tile source.
MethodArgumentsReturns
getMetaDataElementkey: stringjson
loadTiletile: tileobject
setMetaDataElementkey: string, value: jsonvoid

"multi" — MultiTileDataSource​

{"type": "multi", "maxOpenedPackages": …}
{"type": "multi"}
KeyTypeAlways requiredNotes
maxOpenedPackagesintegernodefaults to 4

Inherited from TileDataSource:

PropertyTypeAccessDescription
dataExtentstruct massif::MapBoundsread-onlyReturns the extent of the tiles in this data source. The bounds are in coordinate system of the projection of the data source.
maxOverzoomLevelintegerread/writeGets the current maximum overzoom level for this datasource. Over it the datasource will not be "drawn"
maxZoomintegerread-onlyReturns the maximum zoom level supported by this data source.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns a copy of the data source meta data map; changes to it are not reflected in the source. The map is attached to every loaded tile, e.g. "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder. A wrapper source with no map of its own answers with its wrapped source's.
minZoomintegerread-onlyReturns the minimum zoom level supported by this data source.
projectionobject projections.Projectionread-onlyReturns the projection of this tile source.
MethodArgumentsReturns
adddatasource: handle, tileMask: stringvoid
getMetaDataElementkey: stringjson
loadTiletile: tileobject
removedatasource: handlebool
setMetaDataElementkey: string, value: jsonvoid

"ordered" — OrderedTileDataSource​

{"type": "ordered", "source": …, "source2": …}
KeyTypeAlways requiredNotes
sourceobject std::shared_ptr<TileDataSource>yesan id of kind source, or an inline spec
source2object std::shared_ptr<TileDataSource>yesan id of kind source, or an inline spec

Inherited from TileDataSource:

PropertyTypeAccessDescription
dataExtentstruct massif::MapBoundsread-onlyReturns the extent of the tiles in this data source. The bounds are in coordinate system of the projection of the data source.
maxOverzoomLevelintegerread/writeGets the current maximum overzoom level for this datasource. Over it the datasource will not be "drawn"
maxZoomintegerread-onlyReturns the maximum zoom level supported by this data source.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns a copy of the data source meta data map; changes to it are not reflected in the source. The map is attached to every loaded tile, e.g. "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder. A wrapper source with no map of its own answers with its wrapped source's.
minZoomintegerread-onlyReturns the minimum zoom level supported by this data source.
projectionobject projections.Projectionread-onlyReturns the projection of this tile source.
MethodArgumentsReturns
getMetaDataElementkey: stringjson
loadTiletile: tileobject
setMetaDataElementkey: string, value: jsonvoid

"persistent-cache" — PersistentCacheTileDataSource​

{"type": "persistent-cache", "source": …, "databasePath": …}
KeyTypeAlways requiredNotes
sourceobject std::shared_ptr<TileDataSource>yesan id of kind source, or an inline spec
databasePathstringyes
PropertyTypeAccessDescription
cacheOnlyModebooleanread/writeReturns the state of cache only mode.
openbooleanread-onlyReturns the status of the cache database.

Inherited from CacheTileDataSource:

PropertyTypeAccessDescription
capacityintegerread/write
dataSourceobject datasources.TileDataSourceread-onlyReturns the original data source that the cache uses.

Inherited from TileDataSource:

PropertyTypeAccessDescription
dataExtentstruct massif::MapBoundsread-onlyReturns the extent of the tiles in this data source. The bounds are in coordinate system of the projection of the data source.
maxOverzoomLevelintegerread/writeGets the current maximum overzoom level for this datasource. Over it the datasource will not be "drawn"
maxZoomintegerread-onlyReturns the maximum zoom level supported by this data source.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns a copy of the data source meta data map; changes to it are not reflected in the source. The map is attached to every loaded tile, e.g. "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder. A wrapper source with no map of its own answers with its wrapped source's.
minZoomintegerread-onlyReturns the minimum zoom level supported by this data source.
projectionobject projections.Projectionread-onlyReturns the projection of this tile source.
MethodArgumentsReturns
clear—void
getMetaDataElementkey: stringjson
loadTiletile: tileobject
setMetaDataElementkey: string, value: jsonvoid
startDownloadAreabounds: json, minZoom: int, maxZoom: int, fetchDelay: intvoid
stopAllDownloads—void
EventPayloadConsumable
download.completed—no
download.failedTileDownloadInfono
download.progressTileDownloadInfono
download.startedTileDownloadInfono

"pmtiles" — PMTilesTileDataSource​

{"type": "pmtiles", "minZoom": …, "maxZoom": …, "path": …}
{"type": "pmtiles", "path": …}
KeyTypeAlways requiredNotes
minZoomintegernodefaults to 0
maxZoomintegernodefaults to 24
pathstringyes

Inherited from TileDataSource:

PropertyTypeAccessDescription
dataExtentstruct massif::MapBoundsread-onlyReturns the extent of the tiles in this data source. The bounds are in coordinate system of the projection of the data source.
maxOverzoomLevelintegerread/writeGets the current maximum overzoom level for this datasource. Over it the datasource will not be "drawn"
maxZoomintegerread-onlyReturns the maximum zoom level supported by this data source.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns a copy of the data source meta data map; changes to it are not reflected in the source. The map is attached to every loaded tile, e.g. "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder. A wrapper source with no map of its own answers with its wrapped source's.
minZoomintegerread-onlyReturns the minimum zoom level supported by this data source.
projectionobject projections.Projectionread-onlyReturns the projection of this tile source.
MethodArgumentsReturns
getMetaDataElementkey: stringjson
loadTiletile: tileobject
setMetaDataElementkey: string, value: jsonvoid

"point-detail" — PointDetailTileDataSource​

{"type": "point-detail", "source": …, "layer": …, "detailZoom": …}
KeyTypeAlways requiredNotes
sourceobject std::shared_ptr<TileDataSource>yesan id of kind source, or an inline spec
layerstringyes
detailZoomintegeryesdefaults to 14
PropertyTypeAccessDescription
detailZoomintegerread/writeReturns the zoom whose tiles are read.
layerNamestringread-onlyReturns the layer that is rebuilt.
maxDetailLevelsintegerread/writeReturns how many zoom levels below the requested tile this will reach.
maxFeaturesintegerread/writeReturns how many features a rebuilt tile may carry.
rankPropertystringread/writeReturns the property a rebuilt tile's features are ranked by.

Inherited from TileDataSource:

PropertyTypeAccessDescription
dataExtentstruct massif::MapBoundsread-onlyReturns the extent of the tiles in this data source. The bounds are in coordinate system of the projection of the data source.
maxOverzoomLevelintegerread/writeGets the current maximum overzoom level for this datasource. Over it the datasource will not be "drawn"
maxZoomintegerread-onlyReturns the maximum zoom level supported by this data source.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns a copy of the data source meta data map; changes to it are not reflected in the source. The map is attached to every loaded tile, e.g. "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder. A wrapper source with no map of its own answers with its wrapped source's.
minZoomintegerread-onlyReturns the minimum zoom level supported by this data source.
projectionobject projections.Projectionread-onlyReturns the projection of this tile source.
MethodArgumentsReturns
getMetaDataElementkey: stringjson
loadTiletile: tileobject
setMetaDataElementkey: string, value: jsonvoid

Base classes​

Not constructed directly. Their properties are reachable on every object above that derives from them.

CacheTileDataSource​

PropertyTypeAccessDescription
capacityintegerread/write
dataSourceobject datasources.TileDataSourceread-onlyReturns the original data source that the cache uses.

Inherited from TileDataSource:

PropertyTypeAccessDescription
dataExtentstruct massif::MapBoundsread-onlyReturns the extent of the tiles in this data source. The bounds are in coordinate system of the projection of the data source.
maxOverzoomLevelintegerread/writeGets the current maximum overzoom level for this datasource. Over it the datasource will not be "drawn"
maxZoomintegerread-onlyReturns the maximum zoom level supported by this data source.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns a copy of the data source meta data map; changes to it are not reflected in the source. The map is attached to every loaded tile, e.g. "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder. A wrapper source with no map of its own answers with its wrapped source's.
minZoomintegerread-onlyReturns the minimum zoom level supported by this data source.
projectionobject projections.Projectionread-onlyReturns the projection of this tile source.
MethodArgumentsReturns
getMetaDataElementkey: stringjson
loadTiletile: tileobject
setMetaDataElementkey: string, value: jsonvoid

TileDataSource​

PropertyTypeAccessDescription
dataExtentstruct massif::MapBoundsread-onlyReturns the extent of the tiles in this data source. The bounds are in coordinate system of the projection of the data source.
maxOverzoomLevelintegerread/writeGets the current maximum overzoom level for this datasource. Over it the datasource will not be "drawn"
maxZoomintegerread-onlyReturns the maximum zoom level supported by this data source.
metaDatastruct std::map<std::string, massif::Variant>read/writeReturns a copy of the data source meta data map; changes to it are not reflected in the source. The map is attached to every loaded tile, e.g. "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder. A wrapper source with no map of its own answers with its wrapped source's.
minZoomintegerread-onlyReturns the minimum zoom level supported by this data source.
projectionobject projections.Projectionread-onlyReturns the projection of this tile source.
MethodArgumentsReturns
getMetaDataElementkey: stringjson
loadTiletile: tileobject
setMetaDataElementkey: string, value: jsonvoid

VectorDataSource​

PropertyTypeAccessDescription
dataExtentstruct massif::MapBoundsread-onlyReturns the extent of the data of this data source. The bounds are in coordinate system of the projection of the data source.
projectionobject projections.Projectionread-onlyReturns the projection used by this data source.