ArrowCommunicationLink

箭头链路特效,继承自CommunicationLinkBase
Name Type Description
options Object optional 对象具有以下属性:
Name Type Default Description
visible Boolean true optional 特效显隐
startUUID String 信号起始的地理实体UUID
endUUID String 信号结束的地理实体UUID
startOffset PlotPoint3D PlotPoint3D(0,0,0.5) optional 链路起点相对于起点模型自身大小的偏移量(百分比)
endOffset PlotPoint3D PlotPoint3D(0,0,0.5) optional 链路终点相对于终点模型自身大小的偏移量(百分比)
maxVisibleDistance Boolean -1 optional 为-1时不生效,当起始和终止位置之间的距离小于此距离时才显示链路
speedV Number 1.0 optional 流动速度
lineWidth Number 5.0 optional 线宽
repeatCount Number 50 optional 重复次数
arrowImage Number optional 箭头图片(资源在mServer包/webapps/iserver/mgis文件夹目录下)

Methods

克隆
Returns:
返回克隆对象

fromJSON(jsonObj)

Json转对象
Name Type Description
jsonObj Object

getArrowImage()String

获取箭头图片路径
Returns:
图片路径

getLineWidth()Number

获取线宽(像素)
Returns:
线宽

getRepeatCount()Number

获取重复次数
Returns:
重复次数

getSpeedV()Number

获取流动速度
Returns:
流动速度

setArrowImage(imagePath)

设置箭头图片路径
Name Type Description
imagePath String 图片路径

setGeoEntityParameter(geoEntityParameter, linkGeoEntityUUID)

设置特效属性
Name Type Description
geoEntityParameter GeoEntityParameter 地理实体参数类
linkGeoEntityUUID String optional 实体的UUID

setLineWidth(lineWidth)

设置线宽(像素)
Name Type Description
lineWidth Number 线宽

setRepeatCount(repeatCount)

设置重复次数
Name Type Description
repeatCount Number 重复次数

setSpeedV(speedV)

设置流动速度
Name Type Description
speedV Number 速度

toJSON()String

对象转Json
Returns:
Json对象