SDK JS
    Preparing search index...

    A consumer of the sun — anything GeoSunSystem pushes each SunState to. Implement this to add a custom controller (the built-in ones drive MapLibre light/sky/ hillshade/basemap and the WebGL2 renderers).

    interface SunConsumer {
        dispose?(): void;
        update(sun: SunState): void;
    }

    Implemented by

    Index

    Methods

    • Apply a freshly computed SunState to whatever this consumer drives.

      Parameters

      Returns void