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