new SuperMap.LayerStatus(options)
This class stores the names and the visibility of all sublayers.
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
The parameters.
|
Members
-
displayFilterstring
-
The SQL filter condition displayed by the layer, such as layerStatus.displayFilter = "smid < 10", means that only objects with a smid value less than 10 are displayed.
-
fieldValuesDisplayFilterObject
-
Properties:
Name Type Description values
Array.<number> The value to filter.
fieldName
string The name of the field to be filtered, only fields of numeric type are supported.
fieldValuesDisplayMode
string currently it has two DISPLAY/DISABLE. When it is DISPLAY, it displays the features set above; otherwise, it doesn't display the features set above.
-
isVisibleboolean
-
Gets or sets the visibility of the layer. true is visible.
-
layerNamestring
-
Gets or sets the name of the layer.
Methods
-
destroy()
LayerStatus.js, line 50 -
Disposes the resource. The property that references resource is set to null.
-
toJSON(){Object}
LayerStatus.js, line 62 -
Get the corresponding JSON.
Returns:
Type Description Object The corresponding JSON.