new fengmap.FMImageMarker(options)
Name | Type | Description | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
json |
参数
|
Members
-
readonlybound
-
Properties:
Name Type Description bound
fengmap.FMBound 边界
-
collision
-
是否开启避让效果,默认开启
-
height
-
离地高度
Properties:
Name Type Description height
number 离地高度
-
readonlylevel
-
Properties:
Name Type Description level
number 楼层等级,初始化完成后可以获取当前值
-
readonlytype
-
Properties:
Name Type Description type
fengmap.FMType 节点类型
-
url
-
Properties:
Name Type Description url
String 图片路径
-
visible
-
Properties:
Name Type Description visible
Boolean true 显示 false 隐藏
-
readonlyx
-
Properties:
Name Type Description x
number 坐标
-
readonlyy
-
Properties:
Name Type Description y
number 坐标
Methods
-
addTo(floor)
-
添加到楼层
Name Type Description floor
Object 楼层等级
-
jump(options)
-
图标标注跳动动画
Name Type Description options
Object Name Type Description height
number 图标跳动的高度
times
number 图标跳动次数 默认 1
duration
number 单次跳动动画的持续时长(秒),默认为 1
delay
number 一次跳动完成到下次跳动开始的等待时长(秒),默认为0
-
moveTo(options){fengmap.FMAnimation|undefined}
-
动画移动marker到指定位置
Name Type Description options
Object Name Type Description x
number 图片地图位置x值,默认对应楼层中心点坐标
y
number 图片地图位置y值,默认对应楼层中心点坐标
animate
boolean 是否需要动画,默认false
duration
number 移动到指定位置所用的时间(秒)
finish
function 移动到指定位置后的回调函数
Returns:
Type Description fengmap.FMAnimation | undefined animation 返回动画,或返回undefined -
remove()
-
从楼层中移除
-
stopJump()
-
停止图标标注jump动画。
-
inherited traverse(callback)
-
遍历返回子节点
Name Type Description callback