MapLayr
    Preparing search index...

    Interface ColorTransformationModeSolarAltitude

    The colour transformation phase is calculated from the sun's altitude angle (in radians) at the centre of the map.

    Below min the phase is 1 (full night); above max it is 0 (full day); in between it interpolates linearly. Typical values use ±5° in radians (≈ ±0.0872665).

    interface ColorTransformationModeSolarAltitude {
        kind: "solarAltitude";
        max: number;
        min: number;
        now?: () => Date;
    }
    Index

    Properties

    Properties

    kind: "solarAltitude"
    max: number

    The solar altitude angle in radians at which the phase becomes 0 (full day).

    min: number

    The solar altitude angle in radians at which the phase becomes 1 (full night).

    now?: () => Date

    Optional time source. Called each time the phase is re-evaluated; if omitted, the current wall clock is used and the map re-evaluates the phase every 2 seconds. Supplying this disables the automatic 2-second refresh — the host is expected to call MapView.$render (or otherwise trigger a frame) whenever the playback time advances.