Class: FMExtrudeMarker

FMExtrudeMarker

FMExtrudeMarker 自定义多边形拉伸几何体, 属于fengmap.map.min.js

new fengmap.FMExtrudeMarker(options)

Name Type Description
options json

参数

Name Type Description
opacity number

透明度。0.0 - 1.0 之间取值, 默认为 1.0

color number

颜色,默认‘#FF0000’

extrudeHeight number

拉伸高度,默认为1

height number

离地高度, 默认为 1

edgeMode fengmap.FMEdgeMode

类型,默认 FMEdgeMode.TOP

edgeColor number

线颜色, 默认 color

edgeOpacity number

线透明度,默认 alpha

points array

多边形顶点

points[].x number

x坐标

points[].y number

y坐标

Members

readonlybound

Properties:
Name Type Description
bound fengmap.FMBound

边界

color

Properties:
Name Type Description
color string

颜色值 如:'#ff0000'

edgeColor

Properties:
Name Type Description
color string

边线颜色 如:'#ff0000'

edgeOpacity

Properties:
Name Type Description
opacity number

线透明度

extrudeHeight

Properties:
Name Type Description
extrudeHeight number

拉伸高度

height

离地高度

Properties:
Name Type Description
height number

离地高度

readonlylevel

Properties:
Name Type Description
level number

楼层等级,初始化完成后可以获取当前值

opacity

Properties:
Name Type Description
opacity number

透明度

readonlypoints

Properties:
Name Type Description
points Array

点集合

readonlytype

Properties:
Name Type Description
type fengmap.FMType

节点类型

visible

Properties:
Name Type Description
visible Boolean

true 显示 false 隐藏

Methods

inherited addTo(floor)

添加到楼层

Name Type Description
floor Object

楼层等级

inherited remove()

从楼层中移除

inherited traverse(callback)

遍历返回子节点

Name Type Description
callback