A legend widget displays a legend for a map. This is particularly useful for interpreting and understanding thematic map layers. The legend updates when layers are turned on and off in the map widget. The legend lists all features for the visible layers in the map, even if the features are not displaying at the current map extent. The map determines how the legend looks, so there are no configurable appearance properties for the widget.