Class: Particle

Particle

用于添加几种已设置好的粒子效果

// 添加图层
const layer = new PrimitiveLayer().addToViewer(this.$viewer);
new Particle(
  new Position(118.78600228, 31.9135434, 1.66113721),
  "fire"
).addToLayer(layer);

new Particle(position, type)

overlay/primitive/Particle.js, line 32
Name Type Default Description
position Position

位置坐标

type String "fire" optional

类型 "fire"|"mist"

Classes

Particle

Methods

setStyle(style){Particle}

overlay/primitive/Particle.js, line 148

设置 Particle 的样式

Name Type Description
style Object

样式可选属性

Returns:
Type Description
Particle