XYZ Maps Documentation
    Preparing search index...

    Type Alias StyleZoomRange<Type>

    StyleZoomRange: { [zoom: string | number]: Type }

    A StyleZoomRange is a Map<number,any> with zoomlevel as its keys and the value for the respective Style Property at the respective zoomlevel. Values for intermediate zoom levels are interpolated linearly.

    Type Parameters

    • Type

    Type Declaration

    • [zoom: string | number]: Type
    strokeWidth: {
    // 2px for zoomlevel 1 to 12
    13: 2, // 2px at zoomlevel 13
    // 10px for zoomlevel 14 (linear interpolation)
    15: 18, // 18px at zoomlevel 15
    // 27px for zoomlevel 16 (linear interpolation)
    17: 36 // 36px at zoomlevel 20
    // 36px for zoomlevels 18 to 20
    }