想加的扫描线是这个示例:
http://support.supermap.com.cn:8090/webgl/examples/webgl/editor.html#scanLine,已经在项目中添加气泡图,但是多条扫描线在vue项目中没有添加成功。具体代码如下 let terrainProvider = Cesium.createWorldTerrain() let positions = [ Cesium.Cartographic.fromDegrees(-0.437527545700944, -0.1603676497558539) ] let promise = Cesium.sampleTerrainMostDetailed(terrainProvider, positions) Cesium.when(promise, function () { // 初始化颜色选择控件 $scene.scanEffect.color = new Cesium.Color(0, 255, 211, 1) $scene.scanEffect.period = 3.0 // 开启扫描 $scene.scanEffect.show = true $scene.scanEffect.centerPostion = new Cesium.Cartesian3.fromDegrees(-0.437527545700944, -0.1603676497558539, 10.0) $scene.scanEffect.mode = Cesium.ScanEffectMode.CIRCLE })