new fengmap.FMPolygonMarker(options)
| Name | Type | Description | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
json |
参数
|
Members
-
borderColor
-
Properties:
Name Type Description colorstring 如:'#ff0000'
-
borderWidth
-
Properties:
Name Type Description valnumber 线宽
-
readonlybound
-
Properties:
Name Type Description boundfengmap.FMBound 边界
-
color
-
修改颜色
Properties:
Name Type Description colorString 如:'#ff0000'
-
height
-
离地高度
Properties:
Name Type Description heightnumber 离地高度
-
readonlylevel
-
Properties:
Name Type Description levelnumber 楼层等级,初始化完成后可以获取当前值
-
opacity
-
Properties:
Name Type Description opacitynumber 透明度
-
points
-
Properties:
Name Type Description pointsArray 点集合
-
readonlytype
-
Properties:
Name Type Description typefengmap.FMType 节点类型
-
visible
-
Properties:
Name Type Description visibleBoolean true 显示 false 隐藏
Methods
-
inherited addTo(floor)
-
添加到楼层
Name Type Description floorObject 楼层等级
-
inherited getBelongedBuildingID(){string|null}
-
获取当前对象所属的 buildingID
Returns:
Type Description string | null null 表示归属为当前地图或室内外一体化中的室外主地图 -
getInsideCenter(){Object}
-
获取多边形内部点
Returns:
Type Description Object -
remove()
-
从楼层中移除
-
inherited traverse(callback)
-
遍历返回子节点
Name Type Description callback