# Legend

The **RadMap** control introduces the **MapLegendElement** object. It allows displaying a legend for a particular layer inside the control.

> caption Figure 1: Map Legend

![WinForms RadMap Legend](https://www.telerik.com/products/winforms/documentation/assets/7233f711118e9a24ac338770d6b8bc0a/map-features-legend001.png)

## Setup Legends

Legend items can be added by accessing the **Children** collection of the legend stack element. The code fragment below extends the [Layers Overview](https://www.telerik.com/products/winforms/documentation/controls/map/features/layers/overview) example by adding two legends.

> caption Figure 2: Setup Legends

![WinForms RadMap Setup Legends](https://www.telerik.com/products/winforms/documentation/assets/c023ce6b35b285629d6e0be36b1bf2fe/map-features-legend002.png)

#### Customizing Appearance

```C#
this.radMap1.MapElement.LegendElement.TitleElement.Text = "NBA";
this.radMap1.MapElement.LegendElement.SubtitleElement.Text = "Conferences";
this.radMap1.MapElement.LegendElement.Orientation = Orientation.Horizontal;

this.radMap1.MapElement.LegendElement.ItemStackElement.Children.Add(new MapLegendItemElement("Western", Color.Red));
this.radMap1.MapElement.LegendElement.ItemStackElement.Children.Add(new MapLegendItemElement("Eastern", Color.Blue));
```

```VB.NET
Me.RadMap1.MapElement.LegendElement.TitleElement.Text = "NBA"
Me.RadMap1.MapElement.LegendElement.SubtitleElement.Text = "Conferences"
Me.RadMap1.MapElement.LegendElement.Orientation = Orientation.Horizontal

Me.RadMap1.MapElement.LegendElement.ItemStackElement.Children.Add(New MapLegendItemElement("Western", Color.Red))
Me.RadMap1.MapElement.LegendElement.ItemStackElement.Children.Add(New MapLegendItemElement("Eastern", Color.Blue))
```

## See Also

* [Layers Overview](https://www.telerik.com/products/winforms/documentation/controls/map/features/layers/overview)
* [Mini Map](https://www.telerik.com/products/winforms/documentation/controls/map/features/minimap)
* [Navigation Controls](https://www.telerik.com/products/winforms/documentation/controls/map/features/navigation-controls)
* [Scale Indicators](https://www.telerik.com/products/winforms/documentation/controls/map/features/scale-indicators)
* [Pan and Zoom](https://www.telerik.com/products/winforms/documentation/controls/map/features/pan-and-zoom)
