Class: ServerColor

SuperMap.ServerColor

The ServerColor class. This class uses the RGB color to express colors

new SuperMap.ServerColor(options)

ServerColor.js, line 3
Name Type Description
options Object

The optional parameter.

Name Type Default Description
red number 255 optional

Gets or sets the red value.

green number 0 optional

Gets or sets the green value.

blue number 0 optional

Gets or sets the blue value.

Members

bluenumber

Gets or sets the blue value.

greennumber

Gets or sets the green value.

rednumber

Gets or sets the red value.

Default Value:
255

Methods

SuperMap.ServerColor.formJson(jsonObject){SuperMap.ServerColor}

ServerColor.js, line 49

Transform the JSON object to the ServerColor object

Name Type Description
jsonObject Object

the JSON object to be turned.

Returns:
Type Description
SuperMap.ServerColor the ServerColor object.

destroy()

ServerColor.js, line 37

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