Skip to content

background_layer

Stable

Paints the map background with a colour or a pattern.

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.

  • layer:added

    Fired once, the first time the layer is on the map (not again when a style change, or a map rendered again with the same id, puts it back)

    Not received yet.

  • layer:removed

    Fired when the component is removed, if layer:added was fired

    Not received yet.