LabelClassDescription

A class that represents a label class defined in the layer.

Property

Type

Description

LabelExpression

string

A field name or an expression.

LabelPlacementDescription

LabelPlacementDescription

Location of the label relative to the feature.

MaximumScale

double

Maximum scale at which features will be labeled.

MaximumScaleSpecified

bool

Indicates if MaximumScale is specified.

MinimumScale

double

Minimum scale at which features will be labeled.

MinimumScaleSpecified

bool

Indicates if MinimumScale is specified.

Symbol

SimpleTextSymbol

Symbol for the label.

UseCodedValue

bool

UseCodedValueSpecified

bool

Indicates if UseCodedValue is specified.

Remarks

LabelPlacementDescription returns one of three placement description objects depends on the geometry type of the layer: PointLabelPlacementDescription, LineLabelPlacementDescription, or PolygonLabelPlacementDescription.

Please note that LabelExpression either returns a field name or a simple expression set for a layer. A simple expression could be a concatenation of attribute values from two fields, for example first and last name of a parcel owner. ArcGIS Server drops any advanced expression set on the layer in the source map document and returns an empty string.

Symbol property returns a SimpleTextSymbol.

When the MaximumScale is specified, features will not be labeled when zooming in beyond that scale. For example, if the MaximumScale is 500, labels will not display when zoomed in beyond 1:500.

When the MinimumScale is specified, features will not be labeled when zooming out beyond that scale. For example, if the MaximumScale is 1000, labels will not display when zoomed out beyond 1:1000.

2/28/2020