Class: ThemeLabelUniqueItem

SuperMap.ThemeLabelUniqueItem

The items of unique label thematic map class.

new SuperMap.ThemeLabelUniqueItem(options)

ThemeLabelUniqueItem.js, line 5

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.

Name Type Default Description
unique string

The caption of an item of a label map.

caption string optional

The value of unique thematic map, it could be number, string, etc.

offsetX number 0 optional

The offset of the label in the X direction.

offsetY number 0 optional

The offset of the label in the Y direction.

visible boolean true optional

Whether the ThemeLabelUniqueItem is visible

style SuperMap.ServerTextStyle optional

The display style of the item of the label thematic map.

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.