Summary
Methods:
destroy |
销毁对象,如果元素已经添加到其模型,需要先从模型中移除后再销毁 |
getId |
获取粒子对象的id值 |
resetByMapUnit |
根据地图单位重新调整参数 |
Constructor
new Particle(options)
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
|
Example
let fire = new hmap.geosolution.cell.Particle({
origination:new hmap.geom.Point(new hmap.basetype.Coordinate(120.2177617760875,30.221244396806093,0.00)),
color:new hmap.style.Color(255,102,51,1.0),
scale:1,
pointNum:100,
pointRadius:10,
gravity: [0.0,0.0,0.02],
controlNum:2,
forceScale:[0.6,0.6,0]
});
Methods
-
destroy()
-
销毁对象,如果元素已经添加到其模型,需要先从模型中移除后再销毁
-
getId() → {String}
-
获取粒子对象的id值
Returns:
String -id值
-
resetByMapUnit()
-
根据地图单位重新调整参数