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
Check out our controls reference to see the full list of properties and values recognized by the color legend control.
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