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
"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

"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. The changes you make to this map are NOT reflected in the actual meta data of the source. The map is attached to every tile this source loads, and consumers read their settings from it - "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder, for instance. 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. The changes you make to this map are NOT reflected in the actual meta data of the source. The map is attached to every tile this source loads, and consumers read their settings from it - "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder, for instance. 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. The changes you make to this map are NOT reflected in the actual meta data of the source. The map is attached to every tile this source loads, and consumers read their settings from it - "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder, for instance. 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. The changes you make to this map are NOT reflected in the actual meta data of the source. The map is attached to every tile this source loads, and consumers read their settings from it - "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder, for instance. 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
clearvoid
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. The changes you make to this map are NOT reflected in the actual meta data of the source. The map is attached to every tile this source loads, and consumers read their settings from it - "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder, for instance. 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. The changes you make to this map are NOT reflected in the actual meta data of the source. The map is attached to every tile this source loads, and consumers read their settings from it - "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder, for instance. 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. The changes you make to this map are NOT reflected in the actual meta data of the source. The map is attached to every tile this source loads, and consumers read their settings from it - "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder, for instance. 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. The changes you make to this map are NOT reflected in the actual meta data of the source. The map is attached to every tile this source loads, and consumers read their settings from it - "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder, for instance. 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. The changes you make to this map are NOT reflected in the actual meta data of the source. The map is attached to every tile this source loads, and consumers read their settings from it - "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder, for instance. 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. The changes you make to this map are NOT reflected in the actual meta data of the source. The map is attached to every tile this source loads, and consumers read their settings from it - "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder, for instance. 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. The changes you make to this map are NOT reflected in the actual meta data of the source. The map is attached to every tile this source loads, and consumers read their settings from it - "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder, for instance. 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
clearvoid
getMetaDataElementkey: stringjson
loadTiletile: tileobject
setMetaDataElementkey: string, value: jsonvoid
startDownloadAreabounds: json, minZoom: int, maxZoom: int, fetchDelay: intvoid
stopAllDownloadsvoid
EventPayloadConsumable
download.completedno
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. The changes you make to this map are NOT reflected in the actual meta data of the source. The map is attached to every tile this source loads, and consumers read their settings from it - "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder, for instance. 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. The changes you make to this map are NOT reflected in the actual meta data of the source. The map is attached to every tile this source loads, and consumers read their settings from it - "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder, for instance. 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. The changes you make to this map are NOT reflected in the actual meta data of the source. The map is attached to every tile this source loads, and consumers read their settings from it - "dem_encoding" ("mapbox" or "terrarium") selects the elevation decoder, for instance. 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.