MapLayerMapMeasureDependentStorageLevels (API Reference)
Class MapLayerMapMeasureDependentStorageLevels
Provides a mapping between a MapLayer map measure to datasource storage level.
-
Method Summary
Modifier and TypeMethodDescriptionwithStorageLevelOffset(int offset) Creates an instance ofMapLayerMapMeasureDependentStorageLevelswith the specified storage level offset.
-
Method Details
-
withStorageLevelOffset
Creates an instance of
MapLayerMapMeasureDependentStorageLevelswith the specified storage level offset. This creates a map where the storage level is determined by applying an "offset" to the zoom level. A negative offset results in a storage level lower than the zoom level, while a positive offset increases it. For example, with an offset of 0, the storage level matches the zoom level directly. An offset of -1 makes the storage level one less than the zoom level, and so on. The offset value is clamped to the range of -3 to 3. Note: The generated mapping adjusts so that when the map camera is significantly tilted, the storage level is further reduced for data near the horizon.- Parameters:
offset-Defines an offset of storage level from the zoom level. The value will be clamped to a range of -3 to 3.
- Returns:
MapLayerMapMeasureDependentStorageLevels instance.
-