开启流向性分析
开启管线流向性分析。
涉及接口
- 设置管线点击事件监听
- 绘制管线流向性效果
代码示例
mapmostUE.setOnPipelineClickListener(function (val) {
let {location, type} = val;
let url = "http://xxx.xxx.xx.xxx/SIPPipe/SIPPipe/getPipeLineInfo?lng=" + location[0] + "&lat=" + location[1] + "&height=" + location[2] + "&type=" + type;
fetch(url).then(res => res.json()).then(response => {
console.log(response)
for (let i = 0; i < response.data.length; i++) {
// 绘制流向性箭头效果
mapmostUE.drawPipelineDirection(response.data[i]);
}
});
});
效果
