Cesium.when(promise7, function (layer) {
setHypsometric_(layer)
layer.setQueryParameter({
url: 'http://153.101.160.58:8090/iserver/services/data-SCGW/rest/data',
dataSourceName: '1',
dataSetName: 'GWNB',
keyWord: 'SmID',
})
layer.selectColorType = 1.0
// 点击外轮廓线高亮闪烁
layer.selectColorType = Cesium.SelectColorType.SILHOUETTE_EDGE
layer.selectedLineColor = Cesium.Color.AQUA
function colorSpark() {
if (colorFlag) {
layer.selectedLineColor = Cesium.Color.AQUA
colorFlag = false
} else {
layer.selectedLineColor = Cesium.Color.FORESTGREEN
colorFlag = true
}
if (showPipe.value == false) {
clearInterval(setTime)
}
}
viewer.pickEvent.addEventListener(function (feature) {
setTime = setInterval(() => {
colorSpark()
}, 1000)
for (let attr in feature) {
attr == 'NEWFIELD_2' ? (dataFeature.value['编号'] = feature[attr]) : ''
attr == 'NEWFIELD_3' ? (dataFeature.value['管径'] = feature[attr]) : ''
attr == 'NEWFIELD_4' ? (dataFeature.value['材质'] = feature[attr]) : ''
}
})
})
我点击高亮闪烁以后关闭弹窗希望这个高亮的外轮廓线消失,应该如何做?