开启横截面分析
开启管线横截面分析。
涉及接口
- 开启横截面分析状态
- 添加Marker
代码示例
mapmostUE.startCSectionAnalysis(function (val) {
mapmostUE.removeMarker("CSectionMarker");
mapmostUE.addMarker("CSectionMarker",{
"name": "CSection",
"type": "cleanWindow",
"location": [(val.startPoint[0] + val.endPoint[0])/2,(val.startPoint[1] + val.endPoint[1])/2,(val.startPoint[2] + val.endPoint[2])/2],
"enableAutoFlyTo": true,
"url": "http://xxx.xxx.xx.xxx/SIPSD/pipelineAnalysis/CSection.html?data=" + JSON.stringify(val),
"windowWidth": 800, // 默认350
"windowHeight": 500, // 默认150
})
})
效果
