id |
string
|
|
标注id |
name |
string
|
|
名称 |
show |
boolean
|
true
|
显示/隐藏 |
color |
string
|
"rgba(255,
|
0, 0, 0.5)" 颜色 |
center |
object
|
|
位置
Properties
| Name |
Type |
Description |
lng |
number
|
经度 |
lat |
number
|
纬度 |
alt |
number
|
高度 |
|
radius |
number
|
10
|
半径 |
startAngle |
number
|
10
|
起始方向 |
endAngle |
number
|
0
|
结束方向 |
line |
object
|
|
边框
Properties
| Name |
Type |
Default |
Description |
width |
number
|
3
|
边框宽 |
color |
string
|
"rgba(155,
|
155, 124, 0.89)" 边框颜色 |
|
heightMode |
number
|
2
|
高度模式(0:海拔高度;1:相对地表;2:依附模式) |
areaUnit |
string
|
'平方米'
|
面积单位 |
label |
object
|
|
标签对象
Properties
| Name |
Type |
Default |
Description |
text |
string
|
|
标签文本 |
show |
string
|
|
标签显隐 |
position |
string
|
|
标签位置
Properties
| Name |
Type |
Description |
lng |
number
|
经度 |
lat |
number
|
纬度 |
alt |
number
|
高度 |
|
fontSize |
number
|
20
|
字体大小 |
fontFamily |
number
|
0
|
字体项 0:黑体;1:思源黑体;2:庞门正道标题体;3:数黑体 |
color |
string
|
#ffffff
|
字体颜色 |
lineWidth |
number
|
4
|
引线宽 |
lineColor |
string
|
#00ffff80
|
引线颜色 |
pixelOffset |
number
|
20
|
字体偏移(引线长度) |
backgroundColor |
array
|
['#00ffff80',
|
'#00ffff80'] 背景颜色 |
scaleByDistance |
boolean
|
|
距离缩放 |
near |
number
|
2000
|
视野缩放最近距离 |
far |
number
|
100000
|
视野缩放最远距离 |
|
attribute |
object
|
|
属性内容
Properties
| Name |
Type |
Description |
link |
object
|
链接
Properties
| Name |
Type |
Default |
Description |
content |
array
|
[]
|
链接内容 |
content[].name |
string
|
|
链接名称 |
content[].url |
string
|
|
链接地址 |
|
|
richTextContent |
string
|
|
富文本内容 |
customView |
object
|
|
默认视角
Properties
| Name |
Type |
Description |
orientation |
object
|
默认视角方位
Properties
| Name |
Type |
Description |
heading |
number
|
航向角 |
pitch |
number
|
俯仰角 |
roll |
number
|
翻滚角 |
|
relativePosition |
object
|
视角相对位置
Properties
| Name |
Type |
Description |
lng |
number
|
经度 |
lat |
number
|
纬度 |
alt |
number
|
高度 |
|
|