PlotUtilityTools

图层操作通用算法类

new SuperMap3D.PlotUtilityTools()

Methods

staticSuperMap3D.PlotUtilityTools.createImageryLayerTreeData(viewer)Object

创建当前场景中ImageryLayer图层的TreeData
Name Type Description
viewer Object
Returns:
影像树对象

staticSuperMap3D.PlotUtilityTools.createS3MTilesLayersTreeData(viewer, layerConfig)

通过配置文件tsLayerPanelConfig属性,创建当前场景中Bim图层的TreeData
Name Type Description
viewer Viewer 当前场景
layerConfig Array 图层分组配置对象,
Returns:
Tree控件的data数据,用于显示
Example:
var layerConfig = [ 
         {
              "label": "管线",//分组名
              "children": [
                  {
                      "label": "燃气",//分组名
                      "children": [
                         {
                             "label": "R燃气@CBD",//真实图层名
                              "node": true//叶子节点
                          }
                      ]
                  },
                  {
                      "label": "水",//分组名
                      "children": [
                          {
                              "label": "水@CBD",//真实图层名
                              "node": true//叶子节点
                          }
                      ]
                  },
              ]
          },
          {
              "label": "电箱",//分组名
              "children": [
                  {
                      "label": "DianX电箱@CBD", //真实图层名
                      "node": true //叶子节点
                  }
              ]
          }
      }
  ]

staticSuperMap3D.PlotUtilityTools.createTerrainProviderTreeData(viewer)Object

创建当前场景中TerrainProvider图层的TreeData
Name Type Description
viewer Object
Returns:
地形树对象

staticSuperMap3D.PlotUtilityTools.getAllS3MTilesLayer(scene)

获取当前场景所有的Bim图层
Name Type Description
scene Scene 当前场景
Returns:
当前场景所有的Bim图层