Class: ThemeLabelBackground

SuperMap.ThemeLabelBackground

The ThemeLabelBackground class. This class can be used to set the background shape and style of a label.

new SuperMap.ThemeLabelBackground(options)

ThemeLabelBackground.js, line 6
Name Type Description
options Object

The parameters.

Name Type Default Description
labelBackShape SuperMap.LabelBackShape SuperMap.LabelBackShape.NONE optional

The background style of the label in Label thematic mapping.

backStyle SuperMap.ServerStyle SuperMap.LabelBackShape.NONE optional

The LabelBackShape enumeration.

Members

The LabelBackShape enumeration. The background shape can be a rectangle, a round rectangle, a diamond, an ellipse, a triangle, or a symbol.

Default Value:
SuperMap.LabelBackShape.NON

labelBackShapeSuperMap.LabelBackShape

The background style of the label in Label thematic mapping. When the background shape, the labelBackShape attribute, is set to NONE (no background shape is used), the backStyle attribute is invalid.

Default Value:
SuperMap.LabelBackShape.NONE

Methods

SuperMap.ThemeLabelBackground.fromObj(obj){SuperMap.ThemeLabelBackground}

ThemeLabelBackground.js, line 51

Get the label background style class from the incoming object.

Name Type Description
obj Object

The incoming object.

Returns:
Type Description
SuperMap.ThemeLabelBackground ThemeLabelBackground object.

destroy()

ThemeLabelBackground.js, line 38

Disposes the resource. The property that references resource is set to null.