MapServerLegendClass
A class containing the symbol swatch, label and description of a single legend class.
Property |
Type |
Description |
---|---|---|
Description |
string |
Legend class description. |
Label |
string |
Legend class label. |
SymbolImage |
Legend symbol image (swatch) of the legend class. | |
TransparentColor |
Color to render as completely transparent in the symbol image. Transparency is only supported for image types that support transparency such as .png or .gif. |
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.