Class: ThemeGridRange

SuperMap.ThemeGridRange

The ThemeGridRange class.

new SuperMap.ThemeGridRange(options)

ThemeGridRange.js, line 7

The grid segmentation thematic map divides the values of all cells into multiple range segments according to a certain segmentation method, and the cells whose values are in the same range segment are displayed in the same color. Raster segmentation thematic maps are generally used to reflect the number or extent characteristics of continuous distribution phenomena. For example, the national precipitation distribution map of a certain year, the raster data generated by the observation of each meteorological site after interpolation is segmented and displayed. This class is similar to the segmentation thematic map class, except that the operation object of the segmentation thematic map is vector data, and the operation object of the raster segmentation thematic map is raster data.

Name Type Description
options Object

The parameters.

Name Type Default Description
items Array.<SuperMap.ThemeGridRangeItem>

The array of ThemeGridRangeItem.

reverseColor boolean false optional

Whether to display the object with the reverse color style in grid ranges map.

rangeMode SuperMap.RangeMode SuperMap.RangeMode.EQUALINTERVAL optional

The RangeMode of the ThemeRange.

rangeParameter number 0 optional

The range parameter.

colorGradientType SuperMap.ColorGradientType SuperMap.ColorGradientType.YELLOW_RED optional

The ColorGradientType enumeration.

Extends

Members

colorGradientTypeSuperMap.ColorGradientType

The ColorGradientType enumeration.

Default Value:
SuperMap.ColorGradientType.YELLOW_RED

The ThemeGridRangeItem array.
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 grid range. The range of each range object is [Start, End).

The ThemeMemoryData
The way of making thematic maps with the ThemeMemoryData and the ways of making thematic maps are mutually exclusive, the former has higher priority。 The first parameter represents the thematic value, that is, the data set is used to do the values of the fields or expressions of the thematic graph. The second parameters represent the external values. In the production of a thematic map, the external value is used instead of the topic value to make the corresponding thematic maps.

The RangeMode of the ThemeRange.
The default mode is SuperMap.RangeMode.EQUALINTERVAL.
In a grid range map, the values of the field or expression representing the thematic theme are divided into ranges according to a certain range mode. The range modes currently supported in SuperMap include: the equal interval mode, the square root mode, the standard deviation mode, the logarithm mode, the quantile mode, and the custom interval mode. In these range modes, values are divided into ranges with certain intervals. Therefore the thematic variable for a range map must be numerical.

Default Value:
SuperMap.RangeMode.EQUALINTERVAL

rangeParameternumber

The range parameter.
If the range mode is the equal interval mode, the square root mode, the log mode, or the quantile mode, this parameter is for setting the range number and is required; if the range mode is the standard deviation mode, this parameter does not apply; if the range mode is the custom interval mode, this parameter is used to set the custom intervals. The default value is -1.

reverseColorboolean

Whether to display the object with the reverse color style in grid ranges map.

typestring

type of the thematic mapping.

Methods

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

ThemeGridRange.js, line 94

Get thr grid sectional thematic map from the incoming object.

Name Type Description
obj Object

the incoming object.

Returns:
Type Description
SuperMap.ThemeGridRange ThemeGridRange object.

inherited destroy()

Theme.js, line 41

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

inherited destroy()

Theme.js, line 41

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

inherited toServerJSONObject(){Object}

Theme.js, line 54

Turned to the JSON format object.

Returns:
Type Description
Object The JSON object.