Class: FMFlowLineMarker

FMFlowLineMarker

new fengmap.FMFlowLineMarker(options)

FMFlowLineMarker 是一种具有流动颜色、可配和发光特效使用、可自定义线宽的线形标注

Name Type Description
options Object

配置参数

Name Type Description
lineLength number

流线流光的长度,以最小两顶点距离为单位长度

center Object

流线中心点坐标

points array

流线顶点坐标

backgroundColor string

流线背景颜色

color string

流线流光颜色

opacity number

流线透明度

lineWidth number

流线宽度(像素计)

speed number

流线流光速度,取值范围0-1

Members

show

是否显示marker

Properties:
Name Type Description
bool boolean

true,显示;false,隐藏

Methods

setBackgroundColor(color)

设置流线背景色

Name Type Description
color string

流线背景色

setColor(color)

设置流光颜色

Name Type Description
color string

流光颜色

setOpacity(value)

设置流线透明度

Name Type Description
value number

流线透明度,取值0-1