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

    Interface InputRangeEase<T>

    Input Range Ease

    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.

    ex.

    "radius": {
    "inputRange": {
    "type": "zoom",
    "ease": "expo",
    "base": 1.5,
    "ranges": [
    { "stop": 0, "input": 3 },
    { "stop": 8, "input": 30 }
    ]
    }
    }
    • type: The type of input to use. Options are zoom | lon | lat | angle | pitch
    • ease: [See EaseType] The ease effect. Choose between lin | expo | quad | cubic | step [default: lin]
    • base: Used by expo, quad, or cubic ease functions. Ranges from 0 -> 2 where 1 is linear, 0 is slow start, 2 is slow finish. [default: 1]
    • ranges: [See Range] Set the range stops and the input values to apply at those stops.
    interface InputRangeEase<T extends number | string> {
        base?: number;
        ease?: EaseType;
        ranges: Range<T>[];
        type: "zoom" | "lon" | "lat" | "pitch" | "angle";
    }

    Type Parameters

    • T extends number | string
    Index

    Properties

    Properties

    base?: number

    Used by expo, quad, or cubic ease functions

    Ranges from 0 -> 2 [default: 1]

    • 1 is the default and a linear ease
    • 0 is the slowest ease early on
    • 2 is the fastest ease
    ease?: EaseType

    lin | expo | quad | cubic | step [default: lin]

    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