Class: ThemeRange

SuperMap.ThemeRange

The ThemeRange class.

new SuperMap.ThemeRange(options)

ThemeRange.js, line 7

Range thematic maps display data of a specific attribute according to ranges you set. These ranges are shaded with different colors, patterns, line styles, or symbols. In a range map, the thematic values are divided into several ranges according to a certain ranging method. A range is assigned to each feature based on the corresponding thematic value. The same styles, such as color, fill, and symbol, are applied to features of the same range. A range map must be based on a thematic variable of a numerical type. Range maps are usually used to represent volume or degree characteristics of continuously distributed phenomena, such as distribution of precipitation and distribution of soil erosion rate.

Name Type Description
options Object

The parameters.

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

The array of the ThemeRangeItem.

rangeExpression string

The range field expression.

rangeParameter number

The range parameter.

rangeMode SuperMap.RangeMode SuperMap.RangeMode.EQUALINTERVAL optional

The RangeMode of the ThemeRange.

colorGradientType SuperMap.ColorGradientType SuperMap.ColorGradientType.YELLOW_RED optional

The ColorGradientType enumeration.

memoryData SuperMap.ThemeMemoryData optional

The ThemeMemoryData class.

Extends

Members

colorGradientTypeSuperMap.ColorGradientType

The ColorGradientType class.
A gradient color type has mixed colors containing a start color that gradually changes to an end color based on a certain algorithm. A gradient color type has mixed colors containing a start color that gradually changes to an end color based on a certain algorithm. But if the styles of several items are set separately (through the Style attribute of the SuperMap.ThemeUniqueItem or SuperMap.ThemeRangeItem class), this color scheme does not apply to those items.。

Default Value:
SuperMap.ColorGradientType.YELLOW_RED

The array of the ThemeRangeItem. 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).
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.

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.

precisionstring

The precision.

Default Value:
'1.0E-12'

rangeExpressionstring

The range field expression. As a range map is produced based on dividing values into ranges according to various division methods and certain intervals, the data type of the field values used for creating the map must be a numerical type. The field expressions are only used in the operation of numeric fields. Required.

The RangeMode of the ThemeRange. In a 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.

typestring

type of the thematic mapping.

Methods

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

ThemeRange.js, line 106

Get the scope subsection topic graph subclass form the incoming objects.

Name Type Description
obj Object

The incoming objects.

Returns:
Type Description
SuperMap.ThemeRange ThemeRange 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.