SDK JS
    Preparing search index...

    Type Alias LocationOption

    LocationOption: "map-center" | readonly [number, number] | "geolocate"

    Where to evaluate the sun's position.

    • 'map-center' — re-derives from map.getCenter() on every moveend (the default).
    • readonly [lng, lat] — pins the sun to a fixed point; lng/lat in degrees.
    • 'geolocate' — asks the browser's Geolocation API once, rendering map-center until it resolves and silently staying on map-center if the user denies or it is unavailable.