Box
Map

jQuery VectorMap - legends.source

Specifies the source of data for the legend.

Type:

Object

Cannot be used in themes.

grouping

Specifies the type of the legend grouping.

Type:

String

Cannot be used in themes.

The VectorMap's legend supports two grouping types.

  • color
    Can be used if you have grouped map markers or areas in several differently-colored groups. For more information, refer to the layers's colorGroupingField and colorGroups property descriptions.

  • size
    Available for markers of a bubble type only. Can be used if you have grouped bubble markers in several groups and specified a size for bubbles in each group. For more information, refer to the sizeGroupingField and sizeGroups property descriptions.

View Demo

layer

Specifies a layer to which the legend belongs.

Type:

String

Cannot be used in themes.

Pass a layer name to this property.