withMapMeasureDependentStorageLevels method - MapLayerBuilder class - mapview library - Dart API
withMapMeasureDependentStorageLevels abstract method
- MapLayerMapMeasureDependentStorageLevels mapLayerMapMeasureDependentStorageLevels
Applies a mapping from the map measure to the storage level.
This mapping is used by the layer to request data for the specified storage level corresponding to the map measure from the datasource. This can be used for example to fine-tune the resolution of raster layers. Note: When the map camera is significantly tilted, the storage level is further reduced for data towards the horizon. Note: Mappings that request higher storage levels will lead to an increased number of requests to the raster tile service. Providing the map measure to storage level mapping is optional. If not provided, the default mapping will use a storage level that is for raster layers one and for others three levels lower than the zoom level, corresponding to an offset of -1 and -3.
mapLayerMapMeasureDependentStorageLevelsThe map measure to storage level mapping that should be applied for the layer.
Returns MapLayerBuilder. This class instance.
Implementation
MapLayerBuilder withMapMeasureDependentStorageLevels(MapLayerMapMeasureDependentStorageLevels mapLayerMapMeasureDependentStorageLevels);