This class displays a color range used by areas (in case you set values for your areas).

Properties

PropertyTypeDefaultDescription
borderAlphaNumber1Border opacity.
borderColorColor#FFFFFFBorder color.
borderThicknessNumber1Border thickness.
bottomNumber10Distance from bottom of the map container to the value legend.
colorColor#000000Text color.
enabledBooleantrueSpecifies if value legend is enabled.
fontSizeNumber11Font size.
heightNumber12Height of value legend.
leftNumber10Distance from left of the map container to the value legend.
maxValueStringValue, which will be displayed on the right of the legend (will display max value in case not set any).
minValueString0Value which will be displayed on the left of a legend.
NumberDistance from right of the map container to the value legend.
showAsGradientBooleanfalseSpecifies if color range should be displayed as a gradient or as a set of rectangles, each with different color.
topNumberDistance from top of the map container to the value legend.
widthNumber200Width of value legend.

Methods

ValueLegend class does not have any methods.

Events

ValueLegend class does not have any events.