//线标绘
entity.polyline.positions = new Cesium.CallbackProperty (function(){
return entity.coords;
}, false);
//面标绘
entity.polygon.hierarchy = new Cesium.CallbackProperty (function(){
return new Cesium.PolygonHierarchy(entity.coords);
}, false);
//材料回调
let alpha = Cesium.Color.fromCssColorString ("#f00").withAlpha(0.5);
entity.polyline.material = new Cesium.ColorMaterialProperty (new Cesium.CallbackProperty (function(){
return alpha;
}, false));
cesium中entity的callback回调监听
猜你喜欢
转载自blog.csdn.net/weixin_49666910/article/details/113516390
今日推荐
周排行