Color-legend control
When do you use it?
Add a color legend to your map.
Advanced Editor
Build a color-legend manually:
Automatically build the color-legend
from the element-color
value in @settings
:
Supported properties
colors
defaults toauto
and tries to build the list of colors and labels
The color-legend
can be customized using nested color
blocks which support the following properties:
value
the color itself ("red" or "#BA462F")label
the text to put next to the color
Last updated
Was this helpful?