SDK JS
    Preparing search index...
    • Place the moving sun marker on the arc at a given time by interpolating between samples.

      Parameters

      • samples: SunSample[]

        The day's samples, e.g. from sampleSunDay.

      • min: number

        Local solar minute-of-day in [0, 1440] to place the marker at.

      • width: number

        Drawing width in SVG user units (px).

      • height: number

        Drawing height in SVG user units (px).

      • maxAltitude: number = 75

        Altitude in degrees that maps to the top of the box. Default 75.

      Returns SunMarker

      The marker { x, y, altitudeDeg }. When samples is empty, returns the bottom-left corner with altitudeDeg -90.