Class: FMLine3dMarker

FMLine3dMarker

FMLine3dMarker 3d线标注对象, 为自定义图层。 属于fengmap.map.min.js

new fengmap.FMLine3dMarker(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

radius number

半径,控制线的粗细

isBezier bool

是否使用贝塞尔曲线方式,默认为false,如果为true,points数组元素个数必须为4个

Members

readonlybound

Properties:
Name Type Description
bound fengmap.FMBound

边界

color

Properties:
Name Type Description
color string

颜色 如:'#ff0000'

count

Properties:
Name Type Description
count number

图片个数

height

Properties:
Name Type Description
height number

离地高度

isBezier

Properties:
Name Type Description
isBezier bool

是否为贝塞尔曲线

readonlylevel

Properties:
Name Type Description
level number

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

opacity

Properties:
Name Type Description
opacity number

opacity 透明度

points

Properties:
Name Type Description
points Array

点集合

radius

Properties:
Name Type Description
radius 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

楼层等级

remove()

从楼层中移除

inherited traverse(callback)

遍历返回子节点

Name Type Description
callback