Class: ColorDictionary

SuperMap.ColorDictionary

The ColorDictionary class.

new SuperMap.ColorDictionary(options)

ColorDictionary.js, line 5

The key name in the color dictionary is the specific elevation. The key value represents a color. For raster layer, if an evaluation on the layer is less than the min value in the color dictionary, use the min value. If an evaluation on the layer is greater than the max value in the color dictionary, use the max value. If no color corresponds to the color dictionary, use the gradient color between the closest two colors.

Name Type Description
options Object

The parameters.

Name Type Description
elevation number

Elevation.

color SuperMap.ServerColor

The ServerColor class.

Members

The ServerColor class.

elevationnumber

Elevation.

Methods

destroy()

ColorDictionary.js, line 46

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

toServerJSONObject(){Object}

ColorDictionary.js, line 54

Turned to the JSON object.

Returns:
Type Description
Object The JSON object.