s2maps-gpu - v0.18.0
    Preparing search index...

    Interface InputRangeStep<T>

    Input Range Step

    Input Range is used to group features based on a range of values based upon a type provided and apply specific design attributes for those groups. If the feature's value falls within the range, the fallback is used.

    The "step" type is more limited than an ease type, often used by LAYOUT styling where the change is immediate to each stop.

    ex.

    "radius": {
    "inputRange": {
    "type": "zoom",
    "ease": "expo",
    "base": 1.5,
    "ranges": [
    { "stop": 0, "input": 3 },
    { "stop": 8, "input": 30 }
    ]
    }
    }
    • ease: Must be "step"
    • type: The type of input to use. Options are zoom | lon | lat | angle | pitch
    • ranges: [See Range] Set the range stops and the input values to apply at those stops.
    interface InputRangeStep<T extends NotNullOrObject> {
        base?: number;
        ranges: Range<T>[];
        type: "zoom" | "lon" | "lat" | "pitch" | "angle";
    }

    Type Parameters

    Index

    Properties

    Properties

    base?: number

    Unused by "step" ease functions. Kept to avoid errors in Typescript

    ranges: Range<T>[]

    Set the range stops and the input values to apply at those stops.

    ex.

    "ranges": [
    { "stop": 0, "input": "#f28cb1" },
    { "stop": 100, "input": "#f1f075" },
    { "stop": 750, "input": "#51bbd6" }
    ]
    type: "zoom" | "lon" | "lat" | "pitch" | "angle"

    "zoom" | "lon" | "lat" | "angle" | "pitch"