Class: ThemeGridUniqueItem

SuperMap.ThemeGridUniqueItem

The ThemeGridUniqueItem class. The ThemeGridUniqueItem categorizes pixels with the same attribute value into one class. Each class is a thematic map item.

new SuperMap.ThemeGridUniqueItem(options)

ThemeGridUniqueItem.js, line 5
Name Type Description
options Object

The parameters.

Name Type Default Description
unique number

The value of the grid unique values map item, i.e., the cell value. Cells with same value locate at a same item.

caption string optional

The name of grid unique values map item.

color SuperMap.ServerColor optional

The display color of the grid unique values map item.

visible boolean true optional

The visibility of the ThemeGridUniqueItem.

Members

captionstring

The name of grid unique values map item.

The display color of the grid unique values map item.

uniquenumber

The value of the grid unique values map item, i.e., the cell value. Cells with same value locate at a same item.

visibleboolean

The visibility of the ThemeGridUniqueItem.

Default Value:
true

Methods

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

ThemeGridUniqueItem.js, line 81

Get the grid single valued thematic map subitem from the incoming object.

Name Type Description
obj Object

The incoming object.

Returns:
Type Description
SuperMap.ThemeGridUniqueItem ThemeGridUniqueItem object.

destroy()

ThemeGridUniqueItem.js, line 49

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

toServerJSONObject(){Object}

ThemeGridUniqueItem.js, line 65

Turned to the JSON format object.

Returns:
Type Description
Object The JSON object.