Class: FMFacility

FMFacility

FMFacility 公共设施对象,是一种地图内置图层的对象,只读,不可实例化。

Members

ename

ename

Properties:
Name Type Description
ename string

英文名称

FID

FID

Properties:
Name Type Description
FID string

全地图内唯一的模型ID

groupID

楼层id

Properties:
Name Type Description
groupID number

楼层id

height

高度

Properties:
Name Type Description
height number

高度

ID

ID

Properties:
Name Type Description
ID number

当前楼层内唯一的模型ID

readonlymapCoord

点坐标

Properties:
Name Type Description
mapCoord json

点坐标

maxlevel

maxlevel

Properties:
Name Type Description
maxlevel string

最大显示级别

minlevel

minlevel

Properties:
Name Type Description
minlevel string

最小显示级别

name

name

Properties:
Name Type Description
name string

名称

readonlynodeType

地图元素对象类型

Properties:
Name Type Description
nodeType fengmap.FMNodeType

地图元素对象类型

show

地图元素的显示/隐藏

Properties:
Name Type Description
show bool

【true】: 显示,【false】: 隐藏

typeID

typeID

Properties:
Name Type Description
typeID string

类型

Methods

inherited alwaysShow()

是否一直显示。

inherited avoid(value)

图层内或单个元素与同一图层内的其他元素在同一位置有相互遮盖时,是否自动避让。FMImageMarker FMTextMarker有效。

Name Type Description
value bool

【true】: 需避让,【false】: 不避让。注意:avoid方法与show属性不能同时使用,使用avoid方法会自动更新show属性的值。

boost(params)

图标标注跳动动画。

Name Type Description
params json
Name Type Description
size number

图标变化限制。

times number

图标变化次数。

duration number

单次变化动画的持续时长(秒)。

delay number

一次跳动完成到下次跳动开始的等待时长(秒)。

jump(params)

图标标注跳动动画。

Name Type Description
params json
Name Type Description
height number

图标跳动的高度。

times number

图标跳动次数。不设置该参数或设置为0时, 一直跳动。

duration number

单次跳动动画的持续时长(秒)。

delay number

一次跳动完成到下次跳动开始的等待时长(秒)。

stopBoost()

停止图标标注jump动画。

stopJump()

停止图标标注jump动画。