new SuperMap.ThemeGridRangeItem(options)
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.
|
Members
-
captionstring
-
The caption of an item of a grid range map.
-
colorSuperMap.ServerColor
-
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.