Class: FMSphereMarker

FMSphereMarker

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

new fengmap.FMSphereMarker(options)

Name Type Description
options json

参数

Name Type Description
radius number

半径

height number

离地高度

isHemiSphere bool

是否为半球,默认为true

color string

颜色,如果设置url则失效

url number

贴图路径

x number

地图位置x值,必填

y number

地图位置y值,必填

opacity number

透明度,默认为1

Members

readonlybound

Properties:
Name Type Description
bound fengmap.FMBound

边界

color

Properties:
Name Type Description
color string

颜色 如:'#ff0000'

height

Properties:
Name Type Description
height number

离地高度

isHemiSphere

Properties:
Name Type Description
isHemiSphere bool

是否为半球

readonlylevel

Properties:
Name Type Description
level number

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

opacity

Properties:
Name Type Description
opacity number

透明度

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 隐藏

x

Properties:
Name Type Description
x number

地图x坐标

y

Properties:
Name Type Description
y number

地图y坐标

Methods

inherited addTo(floor)

添加到楼层

Name Type Description
floor Object

楼层等级

inherited remove()

从楼层中移除

inherited traverse(callback)

遍历返回子节点

Name Type Description
callback