Labeling Info
An object that defines the text, appearance and position of labels for features for a given scale range. A LabelingInfo describes a class of labels.
Each LabelingInfo specifies:
Which features are covered by the definition, by applying the LabelingInfo.where SQL constraint
What text should be displayed, based on the individual feature's attributes and the LabelingInfo.labelExpression formula
How the text should appear, using the LabelingInfo.symbol
Where the text should appear, with respect to its feature, using the LabelingInfo.labelPlacement
LabelingInfo describes a very limited subset of the LabelDefinition properties.
Since
200.1.0
Properties
Simple expression describing how to build the text label for a feature, often using attributes of the feature. The default is an empty expression and no labels will be produced.
The preferred position of the text label, with respect to its feature geometry. The default depends on the type of feature geometry:
Labels will only be visible when the viewing scale is smaller than (or equal to) the maxScale. For example, if the viewing scale is 1:12000 and the LabelingInfo.maxScale is 1:10000, then the labels will be visible (because 1/12000 <= 1/10000).
Labels will only be visible when the viewing scale is larger than (or equal to) the minScale. For example, if the viewing scale is 1:12000 and the LabelingInfo.minScale is 1:20000, then the labels will be visible (because 1/12000 >= 1/20000).
The text symbol which describes the overall appearance of label text (e.g. font and size). If no LabelingInfo.symbol has been set, then no labels can be created.
Whether the data source should translate domain identifiers into meanings using a CodedValueDomain. For any translation to occur, the data source must have one or more CodedValueDomain values set up for the attribute fields.