Class: ThemeGraduatedSymbol

SuperMap.ThemeGraduatedSymbol

The ThemeGraduatedSymbol class

new SuperMap.ThemeGraduatedSymbol(options)

ThemeGraduatedSymbol.js, line 9
Name Type Description
options Object

The parameters.

Name Type Default Description
expression string

Fields or field expressions for the ThemeGraduatedSymbol.

style SuperMap.ThemeGraduatedSymbolStyle

Used to set the positive and negative, and zero display style of the graduated symbols.

baseValue number 0 optional

Value of graduated symbol thematic maps.

flow SuperMap.ThemeFlow optional

The flow display and leader line setting class of the ThemeGraduatedSymbol.

graduatedMode SuperMap.GraduatedMode SuperMap.GraduatedMode.CONSTANT optional

Graduated modes.

offset SuperMap.ThemeOffset optional

Sets the object representing the offset of label texts relative to a point within the corresponding feature on a label map.

memoryData SuperMap.ThemeMemoryData optional

The ThemeMemoryData class.

Extends

Members

baseValuenumber

The base value of graduated symbol thematic maps.
The system will calculate the symbol size corresponding to the remaining value by the way of the classification based on this value automatically.
The displayed size of each symbol is equal to the ThemeValueSection.positiveStyle (or zeroStyle,negativeStyle).markerSize * value / basevalue, where value is the value corresponding to the field specified by the expression calculated by the way of classification. repeated attemps are recommended for setting this value in order to get a better display.

expressionstring

Fields or field expressions for the graduated symbol thematic mapping. The required field.

he flow display and leader line setting class of the ThemeGraduatedSymbol.
This field can be used to set whether the graduated symbols are the flow display and leader line style.

graduatedModeSuperMap.GraduatedMode

Graduated modes.
Classification is mainly used for decreasing the difference in value field.If the difference is very large,
you can use logarithm or square root to rank, which will decrease the absolute difference and make a good visual effect of map.
There are three classification methods: constant, logarithm and square root.
To those negative field, the logarithm and square root also can be used. The negative is set to positive.
Different classification modes will get different symbol sizes.

Default Value:
SuperMap.GraduatedMode.CONSTANT

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.

Used to set the offset of the graduated symbol map relative to the point-in-feature.

Used to set the positive and negative, and zero display style of the graduated symbols.

typestring

type of the thematic mapping.

Methods

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

ThemeGraduatedSymbol.js, line 145

Getting the class symbol map from the incoming object.

Name Type Description
obj Object

The incoming object.

Returns:
Type Description
SuperMap.ThemeGraduatedSymbol The ThemeGraduatedSymbol object.

destroy()

ThemeGraduatedSymbol.js, line 79

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

toJSON(){string}

ThemeGraduatedSymbol.js, line 103

Transform the themeLabel object to the JSON string.

Returns:
Type Description
string the JSON string.

toServerJSONObject(){Object}

ThemeGraduatedSymbol.js, line 113

Turned to the JSON format object.

Returns:
Type Description
Object The JSON object.