Class: ThemeLabelBackground

ol.supermap.ThemeLabelBackground

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

new ol.supermap.ThemeLabelBackground(options)

ThemeLabelBackground.js, line 6
Name Type Description
options Object

The parameters.

Name Type Default Description
labelBackShape ol.supermap.LabelBackShape ol.supermap.LabelBackShape.NONE optional

The background style of the label in Label thematic mapping.

backStyle ol.supermap.ServerStyle ol.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:
ol.supermap.LabelBackShape.NON

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:
ol.supermap.LabelBackShape.NONE

Methods

static fromObj(obj){ol.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
ol.supermap.ThemeLabelBackground ThemeLabelBackground object.

destroy()

ThemeLabelBackground.js, line 38

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