new SuperMap.ThemeLabelUniqueItem(options)
Label thematic map is using thematic value to tag point, line, and region objects on layers.
Please notice that the unique label thematic map allows users to specify a field for unique value through the uniqueExpression.
Labels of the same value have the same style of display, in which each value is a thematic item.
Each item has its name, style, specified unique value, offsetX and offsetY.
Name | Type | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
The parameters.
|
Members
-
captionstring
-
The caption of an item of a label map.
-
offsetXnumber
-
The offset of the label in the X direction.
-
offsetYnumber
-
The offset of the label in the Y direction.
-
The display style of the item of the label thematic map. The styles ordered from higher priorities to lower priorities are:
uniformMixedStyle (a mixed style for label texts), ThemeLabelItem.style (a text style for range items), and uniformStyle (a unified text style). -
uniquestring
-
The value of unique thematic map, it could be number, string, etc.
-
visibleboolean
-
The visibility of the item of the label thematic map. The value is true if the item of the label map is visible, or is false otherwise.
- Default Value: true
Methods
-
SuperMap.ThemeLabelUniqueItem.fromObj(obj){SuperMap.ThemeLabelUniqueItem}
ThemeLabelUniqueItem.js, line 84 -
Get items of the unique label thematic map from the incoming object.
Name Type Description obj
Object The incoming object.
Returns:
Type Description SuperMap.ThemeLabelUniqueItem The ThemeLabelUniqueItem object. -
destroy()
ThemeLabelUniqueItem.js, line 67 -
Dispose the resource. Properties of referenced resources are set to null.