Class: SetLayerStatusParameters

SuperMap.SetLayerStatusParameters

The SetLayerStatusParameters class. This class stores the visibility of all sublayers.
Note that what is called the layer in SuperMap iClient series corresponds to the map in SuperMap Deskpro, and what is called the sublayer corresponds to the layer in SuperMap Deskpro.

new SuperMap.SetLayerStatusParameters(options)

SetLayerStatusParameters.js, line 5
Name Type Description
options Object

The parameters.

Name Type Default Description
layerStatusList Array.<SuperMap.LayerStatus>

Gets or sets the layer visible state (SuperMap.LayerStatus) collection, and each SuperMap.LayerStatus object in the collection represents the visual state of a sublayer.

holdTime number 15 optional

Gets or sets the time that the resource saves in the server.

resourceID string optional

ets or sets the resource service ID.

Members

holdTimenumber

Gets or sets the time that the resource saves in the server.

Default Value:
15

layerStatusListArray.<SuperMap.LayerStatus>

Gets or sets the layer visible state (SuperMap.LayerStatus) collection, and each SuperMap.LayerStatus object in the collection represents the visual state of a sublayer.

resourceIDstring

Gets or sets the resource service ID. It is not required. If you set this parameter, it will control the display of layers in the specified TempLayer;
Otherwise, it will first create a TempLayer and control the layer display in the new created TempLayer.

Methods

destroy()

SetLayerStatusParameters.js, line 44

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

toJSON(){Object}

SetLayerStatusParameters.js, line 55

Get json object.

Returns:
Type Description
Object The corresponding JSON object.