RasterTileSource | iOS SDK | 2GIS Documentation
iOS SDK

RasterTileSource

Source that gets raster tiles.

Extends: Source
public convenience init(
    context: Context,
    sublayerName: String,
    sourceTemplate: RasterUrlTemplate
)

Creates a source that gets raster tiles.

Parameters
context
Context

Context.

sublayerName
String

Name to be used during objects generation. This name must be specified in the filter condition of a raster style 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

sourceTemplate
RasterUrlTemplate

Template for requesting tiles.

Methods