Class: ThemeGridRangeItem

SuperMap.ThemeGridRangeItem

The ThemeGridRangeItem class.

new SuperMap.ThemeGridRangeItem(options)

ThemeGridRangeItem.js, line 5

In grid ranges map, the grid values, which is regarded as the thematic variable, can be separated into several ranges according to a certain range method. This class is used to set the start value, end value, caption, color and etc. for each range. The range of each range object is [Start, End).

Name Type Description
options Object

The parameters.

Name Type Default Description
color SuperMap.ServerColor

The color corresponding to each ranges map item in the grid ranges map.

caption string optional

The caption of an item of a grid range map.

end number 0 optional

The end value of the ThemeGridRangeItem object.

start number 0 optional

The start value of the ThemeGridRangeItem object.

visible boolean true optional

The visibility of the ThemeGridRangeItem.

Members

captionstring

The caption of an item of a grid range map.

The color corresponding to each ranges map item in the grid ranges map.

endnumber

The end value of an item of a grid range map is the maximum value of the corresponding thematic value range. Default is 0.

startnumber

The start value of an item of a grid range map is the minimum value of the corresponding thematic value range. Default is 0.

visibleboolean

The visibility of the ThemeGridRangeItem.Default is true。

Default Value:
true

Methods

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

ThemeGridRangeItem.js, line 91

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

Name Type Description
obj Object

The incoming object

Returns:
Type Description
SuperMap.ThemeGridRangeItem ThemeGridRangeItem object.

destroy()

ThemeGridRangeItem.js, line 58

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

toServerJSONObject(){Object}

ThemeGridRangeItem.js, line 75

Turned to the JSON format object.

Returns:
Type Description
Object The JSON object.