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
paintmerges 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
hoverfeature state, forfeature-stateexpressions.
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.