Class: ThemeUniqueItem

SuperMap.ThemeUniqueItem

The ThemeUniqueItem class.

new SuperMap.ThemeUniqueItem(options)

ThemeUniqueItem.js, line 5

In Unique thematic mapping, features with the same values are assigned the same rendering style, and each of them is a thematic mapping item. Take a unique value map of administrative districts as an example. The Name field represents the names of the provinces or municipalities, and is the thematic variable. If there are five different values in this field, this administrative district map will have 5 thematic items.

Name Type Description
options Object

The parameters.

Name Type Default Description
unique string

The single value of the ThemeUniqueItem.

caption string optional

The caption of the ThemeUniqueItem.

style SuperMap.ServerStyle optional

The style of the ThemeUniqueItem.

visible boolean true optional

The visibility of the ThemeUniqueItem.

Members

captionstring

The caption of the ThemeUniqueItem.

The style of the ThemeUniqueItem.

uniquestring

The single value of the ThemeUniqueItem.

visibleboolean

The visibility of the ThemeUniqueItem.

Default Value:
true

Methods

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

ThemeUniqueItem.js, line 85

Obtain a unique value map item subclass from the incoming object.

Name Type Description
obj Object

object.

Returns:
Type Description
SuperMap.ThemeUniqueItem ThemeUniqueItem object.

destroy()

ThemeUniqueItem.js, line 53

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

toServerJSONObject(){Object}

ThemeUniqueItem.js, line 69

Converts to corresponding JSON object.

Returns:
Type Description
Object The JSON object.