let selectlayer=_self.mapView.scene.layers.getSelectedLayer();
// 获取选中图元的id,使其选中颜色改成其他的
let selectid=selectlayer.getSelection()[0];
selectlayer.setObjsColor([selectid],Cesium.Color.fromCssColorString("#0000FF"));
Supermap WebGL Cesium 中获取当前场景中点击的图层及图元ID,并设置选中的颜色样式
最新推荐文章于 2024-04-08 14:26:15 发布