Skip to content

raster_dem_source

Stable

Adds elevation tiles for hillshading and 3D terrain.

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.

  • source:added

    Fired once, with source_id, the first time the source 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.

  • source:removed

    Fired, with source_id, once the source is gone after the component is removed, if source:added was fired

    Not received yet.

  • source:data

    Fired for each of MapLibre's sourcedataloading and sourcedata events about this source: its data is loading, or has loaded or changed

    Not received yet.

  • source:error

    Fired when MapLibre reports an error loading the source or one of its tiles, or fails to add or replace the source

    Not received yet.