Legend in Map
Overview
The legend works in maps just the same way as it works in charts, please refer to:
In this tutorial we will show couple of samples of legend usage in maps and show how to display threshold in legend.
Simple Legend
Usually legend is used to show names of the regions on a map, and, probably, some additional values attached to this regions, for example sales amount in the certain states.
In the sample below we will display the map of the USA (colored states are states where ACME Corp. sells its goods) with a legend that displays a list of states and sales volume for each of them.
Data is attached to the states in a following way:
The legend will be placed to the right of the map and its format is set to show region name and value attached to the regions:
And here is a sample map with the legend, note that legend items is interactive - it highlights the corresponding region. Or all regions on Total item.
Note: <textformat tabstops='[100]'> is used to create table layout.

Multiple Legends
Multiple Legends are useful when you want to divide some data into different legends, in the sample below we will put the same sales data into one legend, and in another table we will place ACME Corp. planned expansion states.
Additional legend is set in <controls> node in <chart_settings>:
So, the additional legend shows "Expansion" series and placed below the main one. We also added custom PlannedExpansionPeriod attribute to the points in "Expansion" series, and show this attribute value both in the additional legend and in tooltips.
The sample of multiple legend map:

Thresholds in Legend
When the map is colored using threshold you can add this threshold to the legend so its description will be shown.
To do that you should configure legend items. The sample below shows map of the China with custom threshold.
Legend is configured to show it:

Undefined Regions in Legend
To show undefined regions in legend you should use a built-in series name - "AnyChart_UndefinedRegions"
Sample colored map of Japan with legend populated from undefined regions series:
