fun createRasterTileDataSource(
context: Context,
sublayerName: String,
urlTemplate: String
): Source
Create a source that receives raster tiles.
Parameters
context
Context
context.
sublayerName
String
The name that will be used when generating objects. This name must be specified in styles in the filter condition of a raster type layer for the db_sublayer attribute. Example: ["match", get,db_sublayer, NAME, true, false] See the specification for details: https://docs.2gis.com/en/mapgl/stylespecification
urlTemplate
String
The url template for requesting tiles must contain the substrings {x}, {y} and {z}, which, when substituted for them with numeric values, form a valid URL to which the request for the tile data will be sent.
Returns