PlotUtilityTools

Layer operation general algorithm class

new SuperMap3D.PlotUtilityTools()

Methods

staticSuperMap3D.PlotUtilityTools.createImageryLayerTreeData(viewer)Object

Create TreeData for the ImageryLayer layer in the current scene
Name Type Description
viewer Object
Returns:
Image tree object

staticSuperMap3D.PlotUtilityTools.createS3MTilesLayersTreeData(viewer, layerConfig)

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 displaying
Example:

    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
    }
    ]
    }
    }
    ]

staticSuperMap3D.PlotUtilityTools.createTerrainProviderTreeData(viewer)Object

Create TreeData for the TerrainProvider layer in the current scene
Name Type Description
viewer Object
Returns:
Terrain tree object

staticSuperMap3D.PlotUtilityTools.getAllS3MTilesLayer(scene)

Get all Bim layers in the current scene
Name Type Description
scene Scene Current scene
Returns:
All BIM layers in the current scene