Skip to content

ValueLegend

Type class

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

Sources

This information about ValueLegend is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.

Inheritance

ValueLegend does not extend any other symbol.

ValueLegend is not extended by any other symbol.

Properties

borderAlpha

Type numberDefault 1

Border opacity.

borderColor

Type stringDefault #FFFFFF

Border color.

borderThickness

Type numberDefault 1

Border thickness.

bottom

Type numberDefault 10

Distance from bottom of the map container to the value legend.

color

Type stringDefault #000000

Text color.

fontSize

Type numberDefault 11

Font size.

height

Type numberDefault 12

Height of value legend.

left

Type numberDefault 10

Distance from left of the map container to the value legend.

maxValue

Type number

Value, which will be displayed on the right of the legend (will display max value in case not set any).

minValue

Type numberDefault 0

Value which will be displayed on the left of a legend.

right

Type number

Distance from right of the map container to the value legend.

showAsGradient

Type booleanDefault false

Specifies if color range should be displayed as a gradient or as a set of rectangles, each with different color.

top

Type number

Distance from top of the map container to the value legend.

width

Type numberDefault 200

Width of value legend.

Methods

ValueLegend does not have any methods.

Events

ValueLegend does not have any events.