@@ -120,22 +120,24 @@ export default class AdvancedAnalysisManager {
120120 * @param {Array } posEnds 轨迹线终点
121121 * @param {Object } options 动态航班参数
122122 * @param {Boolean } [options.isAdd] 是否已添加航班线
123- * @returns {Object } plague 返回动态航班实例
123+ * @param {Color } [options.color] 轨迹线混合颜色,基调为红色
124+ * @param {Number } [options.duration] 周期时间,单位毫秒
125+ * @returns {Object } dynamicPolyline 返回动态航班实例
124126 */
125127 createDynamicPolyline ( posStart , posEnds , options ) {
126128 const optionsParam = Cesium . defaultValue ( options , { } ) ;
127- let plague ;
129+ let dynamicPolyline ;
128130 if ( posStart !== undefined && posEnds !== undefined ) {
129- plague = new Cesium . DynamicPolyline ( this . viewer , {
130- center : posStart ,
131- cities : posEnds ,
132- isAdd : Cesium . defaultValue ( optionsParam . isAdd , false )
131+ dynamicPolyline = new Cesium . DynamicPolyline ( this . viewer , posStart , posEnds , {
132+ isAdd : Cesium . defaultValue ( optionsParam . isAdd , false ) ,
133+ color : Cesium . defaultValue ( optionsParam . color , Cesium . Color . ORANGE ) ,
134+ duration : 3000
133135 } ) ;
134- plague . setVisible ( 'add' ) ;
136+ dynamicPolyline . setVisible ( 'add' ) ;
135137 } else {
136138 return undefined ;
137139 }
138- return plague ;
140+ return dynamicPolyline ;
139141 }
140142
141143 /**
@@ -432,9 +434,9 @@ export default class AdvancedAnalysisManager {
432434 }
433435
434436 /**
435- * 烟雾粒子特效
437+ * 动态粒子特效
436438 * @function module:客户端可视化分析.AdvancedAnalysisManager.prototype.createParticle
437- * @param {Object } options 烟雾粒子特效参数
439+ * @param {Object } options 动态粒子特效参数
438440 * @param {String } options.imageUrl 粒子url
439441 * @param {String } options.modelUrl 模型url
440442 * @param {Date } [options.startTime] 开始时间
@@ -447,7 +449,7 @@ export default class AdvancedAnalysisManager {
447449 const particleSystem = new Cesium . ParticleC ( this . viewer , {
448450 imageUrl : optionsParam . imageUrl ,
449451 modelUrl : optionsParam . modelUrl ,
450- startTime : Cesium . defaultValue ( optionsParam . startTime , new Cesium . Date ( 2015 , 2 , 25 , 16 ) ) ,
452+ startTime : Cesium . defaultValue ( optionsParam . startTime , new Date ( 2015 , 2 , 25 , 16 ) ) ,
451453 duration : Cesium . defaultValue ( optionsParam . duration , 120 ) ,
452454 positionStart : Cesium . defaultValue ( optionsParam . positionStart , Cesium . Cartesian3 . fromDegrees ( - 75.15787310614596 , 39.97862668312678 ) ) ,
453455 positionEnd : Cesium . defaultValue ( optionsParam . positionEnd , Cesium . Cartesian3 . fromDegrees ( - 75.1633691390455 , 39.95355089912078 ) )
@@ -457,22 +459,22 @@ export default class AdvancedAnalysisManager {
457459 }
458460
459461 /**
460- * 移除烟雾粒子特效
462+ * 移除动态粒子特效
461463 * @function module:客户端可视化分析.AdvancedAnalysisManager.prototype.removeParticle
462- * @param {Object } particle 烟雾粒子特效实例
464+ * @param {Object } particle 动态粒子特效实例
463465 */
464466 removeParticle ( particle ) {
465467 particle . remove ( ) ;
466468 this . scene . requestRender ( ) ;
467469 }
468470
469471 /**
470- * 火焰特效
472+ * 火焰或烟雾粒子特效
471473 * @function module:客户端可视化分析.AdvancedAnalysisManager.prototype.createFire
472- * @param {String } modelUrl 模型url
473- * @param {String } imageUrl 火焰图片url
474+ * @param {String } imageUrl 粒子特效图片url
474475 * @param {Array<Number> } position 模型位置,position[0]:经度,position[1]:纬度,position[2]:高度
475- * @param {Object } options 火焰特效参数
476+ * @param {Object } options 粒子特效参数
477+ * @param {String } [options.modelUrl] 模型url
476478 * @param {Number } [options.minimumPixelSize] 模型最小像素尺寸
477479 * @param {Number } [options.startScale] 起始规模
478480 * @param {Number } [options.endScale] 终止规模
@@ -481,15 +483,14 @@ export default class AdvancedAnalysisManager {
481483 * @param {Cartesian2 } [options.imageSize] 图像尺寸
482484 * @param {Number } [options.emissionRate] 排放率
483485 * @param {Number } [options.lifetime] 持续时间
484- * @returns {Object } result 返回火焰特效中火焰粒子与模型entity
486+ * @returns {Object } result 返回粒子特效实例
485487 */
486- createFire ( modelUrl , imageUrl , position , options ) {
488+ createFire ( imageUrl , position , options ) {
487489 this . viewer . clock . shouldAnimate = true ;
488490 const optionsParam = Cesium . defaultValue ( options , { } ) ;
489- const fire = new Cesium . Fire ( this . viewer , {
490- modelUrl,
491- imageUrl,
492- position,
491+ const fire = new Cesium . Fire ( this . viewer , imageUrl , position , {
492+ modelUrl : optionsParam . modelUrl ,
493+ minimumPixelSize : Cesium . defaultValue ( optionsParam . minimumPixelSize , 64.0 ) ,
493494 startScale : Cesium . defaultValue ( optionsParam . startScale , 1.0 ) ,
494495 endScale : Cesium . defaultValue ( optionsParam . endScale , 4.0 ) ,
495496 particleLife : Cesium . defaultValue ( optionsParam . particleLife , 1.0 ) ,
0 commit comments