Skip to content
LoidoltTheme 0.11.1
Svelte 5

Component

FillLayer

Polygons filled from a source, in the first series colour unless told otherwise.

import { FillLayer } from '@loidolt/theme-maps';

Example

Focus the map to move it: arrow keys pan, plus and minus zoom, Shift with the arrows rotates and tilts.

Hover a zone

Notes

  • paint merges over themed defaults; pass a function of the colours to follow light and dark. Only changed properties are sent to MapLibre.
  • Features with an id get a hover feature state, for feature-state expressions.

Props

Generated from the component source, so it cannot drift from the implementation.

No documented props

This component takes only the attributes of the element it renders.

Plus the attributes of LayerProps, forwarded to the root element.