new fengmap.FMFacility(data)
构造FMFacility类
| Name | Type | Description |
|---|---|---|
data |
* |
Members
-
readonlybound
-
Properties:
Name Type Description boundfengmap.FMBound 边界
-
readonlyeName
-
英文名称
Properties:
Type Description string -
readonlyFID
-
模型FID
Properties:
Type Description string -
readonlyheight
-
模型高度
Properties:
Type Description number -
readonlyID
-
模型ID
Properties:
Type Description string -
readonlylevel
-
模型所在层级
Properties:
Type Description string -
readonlyname
-
中文名称
Properties:
Type Description string -
readonlytype
-
Properties:
Name Type Description typefengmap.FMType 节点类型
-
readonlytypeID
-
数据类型ID
Properties:
Type Description string -
visible
-
Properties:
Name Type Description visibleBoolean true 显示 false 隐藏
-
readonlyx
-
X轴坐标
Properties:
Name Type Description 返回该层的中点X轴坐标number -
readonlyy
-
Y轴坐标
Properties:
Name Type Description 返回该层的中点Y轴坐标number
Methods
-
boost(options)
-
图标标注放大缩小动画。
Name Type Description optionsObject Name Type Description sizenumber 图标变化限制。
timesnumber 图标变化次数。不设置该参数或设置为0时, 一直缩放。
durationnumber 单次变化动画的持续时长(秒)。
delaynumber 一次跳动完成到下次跳动开始的等待时长(秒)。
-
inherited dispose()
-
废置地图对象
-
getData(){Object}
-
获取公共设施数据属性
Returns:
Name Type Description ObjectObject 公共设施数据属性 Name Type Description IDstring 图层唯一id typeIDstring 数据类型ID FIDstring 模型FID heightnumber 高度 namestring 模型名字 eNamestring 模型英文名字 minLevelint 最小显示级别 maxLevelint 最大显示级别 -
jump(options)
-
图标标注跳动动画。
Name Type Description optionsObject Name Type Description heightnumber 图标跳动的高度。
timesnumber 图标跳动次数。不设置该参数或设置为0时, 一直跳动。
durationnumber 单次跳动动画的持续时长(秒)。
delaynumber 一次跳动完成到下次跳动开始的等待时长(秒)。
-
stopBoost()
-
停止图标标注放大缩小动画。
-
stopJump()
-
停止图标标注跳动动画。
-
inherited traverse(callback)
-
遍历返回子节点
Name Type Description callback