Summary
Methods:
getLocation |
获取当前扩散中心点 |
setLocation |
扩散中心点绑定,默认为屏幕中心点 |
setSpeed |
扩散速度设置 |
setStrength |
强度设置 |
Constructor
new SpreadFrame(context, type, options)
Parameters:
Name | Type | Default | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
context |
WebglContext | 地图渲染上下文,可通过map.getContext()获取 |
||||||||||
type |
Number | 0 | 帧缓冲的读写模式 |
|||||||||
options |
Object |
|
Methods
-
getLocation() → {Array}
-
获取当前扩散中心点
Returns:
Array -
setLocation(loc)
-
扩散中心点绑定,默认为屏幕中心点
Parameters:
Name Type Description loc
Array 扩散中心点
-
setSpeed(speed)
-
扩散速度设置
Parameters:
Name Type Description speed
Number -
setStrength(strength)
-
强度设置
Parameters:
Name Type Description strength
Number