Class: FMWallMarker

FMWallMarker

FMWallMarker 围墙标注对象, 为自定义图层。 属于fengmap.plugin.markers.min.js

new fengmap.FMWallMarker(options)

Name Type Description
options json

参数

Name Type Description
points number

围墙坐标点数组

points[].x number

x坐标

points[].y number

y坐标

points[].z number

z坐标

color string

围墙颜色,如果设置url则失效

url number

图片地址

count number

与url共同使用,显示在围墙上的图片个数,如果为空则按照墙的长宽自动计算一个图片个数

opacity number

透明度,默认为1

height number

离地高度,默认为0

extrudeHeight number

围墙高度,默认为1

gradient object

围墙渐变色

Name Type Description
direct string

渐变方向,当direct为“x”时为横向渐变,当direct为“y”时为纵向渐变

colors array

渐变颜色数组,如果设置color则失效

{
            0.0: "rgba(0,0,255,1)",
            0.55: "rgba(0,255,255,1)",
            0.65: "rgba(0,255,0,0)",
            1.0: "rgba(255,0,0,1)",
        }

Members

readonlybound

Properties:
Name Type Description
bound fengmap.FMBound

边界

color

Properties:
Name Type Description
color string

颜色 如:'#ff0000'

count

Properties:
Name Type Description
count number

图片个数

extrudeHeight

Properties:
Name Type Description
extrudeHeight number

围墙高度

gradient

Properties:
Name Type Description
gradient object

围墙渐变颜色设置

height

Properties:
Name Type Description
height number

离地高度

readonlylevel

Properties:
Name Type Description
level number

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

opacity

Properties:
Name Type Description
opacity number

透明度

points

Properties:
Name Type Description
points Array

点集合

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

inherited addTo(floor)

添加到楼层

Name Type Description
floor Object

楼层等级

inherited remove()

从楼层中移除

inherited traverse(callback)

遍历返回子节点

Name Type Description
callback