1.在超图页面添加三维倾斜:
this.viewer.scene.addS3MTilesLayerByScp("三维倾斜服务的路径",{name:"自己起的倾斜名字"});
销毁三维倾斜:
this.viewer.scene.layers.remove("自己起的倾斜的名字")
2.在超图页面添加二维图层;
this.viewer.imageryLayers.addImageryProvider("图层路径");
销毁图层服务
this.viewer.imageryLayers.remove(图层索引)
3.在超图页面画多边形:
this.viewer.entities.add({
name:"自己起的名",
id:"随便起"
polyline:{
positions: Cesium.Cartesian3.fromDegreesArrayHeights([
longitude,
latitude,
height
]),
宽度,
material: new Cesium.PolylineOutlineOutlineMaterialProperty({
color:Cesium.Color.RED as any
})
}
})
清除多边形:
this.viewer.entities.removeById("多边形的id")