setStyleCustomRasterSourceTileData

Note! This is an experimental feature. It can be changed or removed in future versions.

Set tile data for a raster tile.

By default, the provided data is not cached, and the implementation will call the fetch callback each time the tile reappears. Use the MapboxMap.setTileCacheBudget API to establish an internal cache for the source.

Parameters

sourceId

A style source identifier.

tileId

A canonical tile id of the tile.

image

Image content of the tile. If an empty image is provided then the tile gets removed from the map.