Skip to content

sky

Stable

MapLibre's sky above the horizon of a pitched map, with fog over 3D terrain and an atmosphere around a globe.

The events this component sends to the LiveView, as the library documents them. Each arrives in handle_event/3. Use the preview; the last payload of each event the example receives appears here. A component sends only the events its events attribute names, so the example receives those its LiveView handles.

  • sky:enabled

    Fired once, the first time the component sets its sky, with no payload keys (%{}). Not fired again when a style change, a map rendered again or a new assign sets it again, nor when the map's sky already had the component's settings, which it then leaves to the map

    Not received yet.

  • sky:disabled

    Fired when the component is removed and takes its sky off, with no payload keys (%{}). A sky that is no longer the component's own is left on, and the event is not fired

    Not received yet.