A class containing legend groups for a layer in a map.
Property |
Type |
Description |
LayerID |
int |
The unique ID of a layer. |
LegendGroups |
Array of legend group, with each able to contain one or more legend classes. | |
Name |
string |
The layer name in the legend. |
Remarks
Legends are associated with renderers that
belong to each layer in a map. Each layer has a separate renderer. Each
renderer has one or more legend groups. Each legend group has one or more
legend classes. MapServerLegendClass
objects are part of a MapServerLegendGroup
object and these are part of a MapServerLegendInfo
object. MapServerLegendInfo
objects are returned from a call to the GetLegendInfo
method on a map service.