public func createRasterTileDataSource(
context: Context,
sublayerName: String,
urlTemplate: String
) -> Source
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 the raster type layer for the db_sublayer attribute. Example: [“match”, [“get”, “db_sublayer”], [“NAME”], true, false] For details, see the specification: https://docs.2gis.com/en/mapgl/stylespecification
urlTemplate
String
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