new fengmap.FMRain(map, options)
构造 FMRain 类
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
map |
fengmap.FMMap |
地图对象 |
|||||||||
options |
Object |
|
Methods
-
disable()
-
禁用雨水效果
-
dispose()
-
释放资源
-
enable()
-
启用雨水效果
-
getRaindrops(){number}
-
获取雨水大小程度
Returns:
Type Description number raindrops 雨水大小程度 -
getUrl(){string}
-
获取贴图路径
Returns:
Type Description string -
setRaindrops(raindrops)
-
设置雨水大小程度
Name Type Description raindropsnumber 雨水大小程度
-
setUrl(url)
-
设置贴图路径
Name Type Description urlstring 贴图路径