Methods
-
Create TreeData for the ImageryLayer layer in the current scene
Name Type Description viewer
Object Returns:
Image tree object -
Create the TreeData of the Bim layer in the current scene through the tsLayerPanelConfig property of the configuration file
Name Type Description viewer
Viewer Current scene layerConfig
Array Layer grouping configuration object Returns:
The data of the Tree control for displayingExample:
var layerConfig = [ { "label": "pipeline",//group name "children": [ { "label": "gas",//group name "children": [ { "label": "R_gas@CBD",//real layer name "node": true//leaf node } ] }, { "label": "water",//group name "children": [ { "label": "water@CBD",//real layer name "node": true//leaf node } ] }, ] }, { "label": "electric box",//group name "children": [ { "label": "DianX_Electricbox@CBD", //real layer name "node": true //leaf node } ] } } ]
-
Create TreeData for the TerrainProvider layer in the current scene
Name Type Description viewer
Object Returns:
Terrain tree object -
Get all Bim layers in the current scene
Name Type Description scene
Scene Current scene Returns:
All BIM layers in the current scene