fun createRasterTileDataSource(
context: Context,
sublayerName: String,
urlTemplate: String
): Source
Create a source that obtains raster tiles.
Parameters
context
Context
Context.
sublayerName
String
The name that is used when generating objects.\nThis name must be specified in the styles as filter condition in the raster layer for the db_sublayer attribute.\nExample: ["match", get, db_sublayer, NAME, true, false]\nFor more information, see the specification: https://docs.2gis.com/en/mapgl/stylespecification
urlTemplate
String
The URL template for requesting tiles must contain the substrings {x}, {y} and {z}. When they are substituted with numeric values, they form a valid URL to which the request for the tile data is sent.
Returns