new SuperMap.ThemeRangeItem(options)
In a range map, field values are divided into several ranges based on a certain ranging method. Each range is an item. Features of the same range belong to the same item of the thematic map. The range corresponding to every sub-item has a start value, a end value, a name, a style, and so on. The extent of each range is [start, end).
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
The parameters.
|
Members
-
captionstring
-
The caption of an item of a range map.
-
endnumber
-
The end value of the ThemeRangeItem is the maximum value of the corresponding thematic value range.
If this item is the last item in the range, the end value should be greater than the maximum value of the range field, the rangeExpression property of the themeRange class. If not, the color of the gap will be randomly assigned. If the item is not the last one in the range, the end value must be identical to the start value of the next item. Otherwise, an error will be thrown. Once the range mode and the range number are set, the extent of each range, [start, end), can be automatically calculated. Thus there is no need to set [start, end). Certainly the user can set the extents, in which case the range result will be adjusted according to the user's setting. -
startnumber
-
The start value of an item of a range map is the minimum value of the corresponding thematic value range.
If this item is the first one among the ranges, its start value is the minimum value of all ranges; if this item is not the first one, its start value must be the same as the end value of the previous item, or the system will throw an exception. Once the range mode and the range number are set, the extent of each range, [start, end), can be automatically calculated. Thus there is no need to set [start, end). Certainly the user can set the extents, in which case the range result will be adjusted according to the user's setting. -
styleSuperMap.ServerStyle
-
The style of the ThemeGraphItem. Each ThemeRangeItem corresponds to a kind of display style.
-
visibleboolean
-
The visibility of the ThemeRangeItem.
- Default Value: true
Methods
-
SuperMap.ThemeRangeItem.fromObj(obj){SuperMap.ThemeRangeItem}
ThemeRangeItem.js, line 97 -
Get the scope subsection topic graph subclass form the incoming objects.
Name Type Description obj
Object The incoming objects
Returns:
Type Description SuperMap.ThemeRangeItem ThemeRangeItem object. -
destroy()
ThemeRangeItem.js, line 64 -
Disposes the resource. The property that references resource is set to null.
-
toServerJSONObject(){Object}
ThemeRangeItem.js, line 81 -
Turned to the format of the JSON object.
Returns:
Type Description Object The JSON object.