Class: FMFlowline

FMFlowline

FMFlowline 提供一种具有流动颜色、可配和发光特效使用的效果,属于 fengmap.effect.min.js

new fengmap.FMFlowline(map, options)

构造 FMFlowline 类

Name Type Description
map fengmap.FMMap

地图对象

options Object

流线参数

Name Type Description
points Array

顶点数组

url string

贴图路径

color string

线颜色

backgroundColor int

背景色

lineWidth int

线宽

count int

流光线段数

speed number

值越大,流动效果越快

Methods

addTo(floor)

添加到 floor

Name Type Description
floor fengmap.FMFloor

地图楼层对象

dispose()

移除

getBackgroundColor(){int}

获取背景色

Returns:
Type Description
int 背景色

getColor(){int}

获取颜色

Returns:
Type Description
int 颜色

getLineWidth(){int}

获取线宽

Returns:
Type Description
int 线宽

getSpeed(){number}

获取速度

Returns:
Type Description
number 速度

getUrl(){string}

获取Url

Returns:
Type Description
string 贴图url地址

remove()

移除

setBackgroundColor(value)

设置背景色

Name Type Description
value int

setColor(value)

设置颜色

Name Type Description
value int

setLineWidth(value)

设置线宽

Name Type Description
value int

线宽

setSpeed(value)

设置速度

Name Type Description
value number

速度

setUrl(value)

设置Url

Name Type Description
value string