Foreword
api documentation cesium official website Address cesium official website api , description of each class of which a detailed description cesium, there is the online examples: cesium official website online examples , this is a good learning material cesium.
At a Glance
1. Based Radar scanning cesium
2. download the source code demo
Benpian achieve cesium radar scan function, the effect is as follows:
Realization of ideas: Core Reference Cesium PostProcessStage class
- Core code
/* 添加雷达扫描线 地形遮挡开启 lon:-74.01296152309055 lat:40.70524201566827 height:129.14366696393927 viewer cartographicCenter 扫描中心 radius 半径 米 scanColor 扫描颜色 duration 持续时间 毫秒 */ function AddRadarScanPostStage(viewer, cartographicCenter, radius, scanColor, duration) { var ScanSegmentShader = "uniform sampler2D colorTexture;\n" + "uniform sampler2D depthTexture;\n" + "varying vec2 v_textureCoordinates;\n" + ……
更多详情见小专栏此文章:GIS之家cesium小专栏
文章提供源码,对本专栏感兴趣的话,可以关注一波