Svelte Maplibre

API / Layers

BackgroundLayer

Add a MapLibre background layer to the map. A background layer fills the full map with a color or a pattern.

This is a thin wrapper around Layer with type set to background. It does not use a source, so you can put it anywhere inside the map.

import { BackgroundLayer } from 'svelte-maplibre';

Generic parameters: FEATURE extends Feature = Feature

Examples

Props

Inherited from CommonLayerProps

Source: src/lib/BackgroundLayer.svelte