MapLayerMapMeasureDependentStorageLevels

public class MapLayerMapMeasureDependentStorageLevels
extension MapLayerMapMeasureDependentStorageLevels: NativeBase
extension MapLayerMapMeasureDependentStorageLevels: Hashable

Provides a mapping between a MapLayer map measure to datasource storage level.

  • Creates an instance of MapLayerMapMeasureDependentStorageLevels with 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.

    Declaration

    Swift

    public static func withStorageLevelOffset(_ offset: Int32) -> MapLayerMapMeasureDependentStorageLevels

    Parameters

    offset

    Defines an offset of storage level from the zoom level. The value will be clamped to a range of -3 to 3.

    Return Value

    MapLayerMapMeasureDependentStorageLevels instance.