Class: FMTextMarkerLayer

FMTextMarkerLayer

FMTextMarkerLayer 文本标注层图层,自定义图层,每层可以包含多个文本标注图层,每个标注图层可添加任意个文本标注。

new fengmap.FMTextMarkerLayer()

Members

groupID

楼层id

Properties:
Name Type Description
groupID number

楼层id

height

高度

Properties:
Name Type Description
height number

高度

readonlymapCoord

元素中心点坐标点

Properties:
Name Type Description
mapCoord json

地图坐标{x;,y:,z:}

readonlymarkers

获得当前FMTextMarkerLayer的内部markers数组

Properties:
Name Type Description
markers array

FMTextMarker对象数组

readonlynodeType

地图元素对象类型

Properties:
Name Type Description
nodeType fengmap.FMNodeType

地图元素对象类型

show

地图元素的显示/隐藏

Properties:
Name Type Description
show bool

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

Methods

addMarker(marker)

添加文本标注

Name Type Description
marker fengmap.FMTextMarker

此图层可为FMTextMarker对象

inherited alwaysShow()

是否一直显示。

inherited avoid(value)

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

Name Type Description
value bool

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

dispose()

释放

removeAll()

移除该图层的所有图片标注

removeMarker(marker)

移除单个文本标注

Name Type Description
marker fengmap.FMTextMarker

此图层可为已添加的某个FMTextMarker对象