其他分享
首页 > 其他分享> > 在超图添加其他图层

在超图添加其他图层

作者:互联网

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

]),

width: 宽度,

material: newCesium.PolylineOutlineOutlineMaterialProperty({

color:Cesium.color.RED as any

})

}

})

清除多边形:

this.viewer.entities.removeById("多边形的id")

 

标签:倾斜,viewer,超图,多边形,图层,添加,页面
来源: https://www.cnblogs.com/robotsu/p/13047946.html