new SuperMap.SetLayerStatusParameters(options)
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
The parameters.
|
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.