RasterDataSourceProviderConfiguration.withDefaults constructor - RasterDataSourceProviderConfiguration - mapview.datasource library - Dart API
RasterDataSourceProviderConfiguration.withDefaults
RasterDataSourceProviderConfiguration.withDefaults constructor
- TileUrlProviderCallback urlProvider,
- TilingScheme tilingScheme,
- List<
int> storageLevels
Creates a new instance.
urlProviderProvides a function that generates URLs based on tile coordinates and storage level.tilingSchemeThe tiling scheme used by this source.storageLevelsThe storage levels available for this data source. Supported range [0, 31]. At least one level must be available for this provider to be used as a source of data. At storage level zero, the whole world is represented by one tile. At storage level 1 the world is split in 2x2 tiles (or in 2x1 tiles, depending on the tiling scheme). The tiling process continues in this fashion until sufficient granularity has been achieved. In the XYZ addresing scheme for tiles, z value of the tile key coresponds to the storage level. Depending on the available storage levels and the given camera zoom level, the appropriate z value of the tile key will be determined.
Implementation
RasterDataSourceProviderConfiguration.withDefaults(this.urlProvider, this.tilingScheme, this.storageLevels)
: hasAlphaChannel = false, headers = null;