options |
object
|
Properties
| Name |
Type |
Default |
Description |
id |
string
|
|
唯一标识 |
name |
string
|
|
名称 |
speed |
number
|
1
|
运行速度 |
delay |
number
|
0
|
运动延迟时间(毫秒) |
loop |
boolean
|
true
|
循环 |
height |
number
|
|
起始点高度 |
ground |
boolean
|
false
|
贴地 |
state |
boolean
|
true
|
模型运动 |
routeDirection |
boolean
|
true
|
路径方向 |
viewFollow |
boolean
|
false
|
视角跟随 |
realTimeRoute |
boolean
|
false
|
实时路径 |
model |
object
|
|
模型参数
Properties
| Name |
Type |
Default |
Description |
show |
boolean
|
true
|
模型显隐 |
url |
string
|
|
模型地址 |
pixelSize |
number
|
70
|
模型像素大小 |
heading |
number
|
0
|
模型航向角 |
pitch |
number
|
0
|
模型俯仰角 |
roll |
number
|
0
|
模型翻滚角 |
scale |
number
|
1
|
模型比例 |
animate |
string
|
|
模型动画 |
|
line |
object
|
|
路径参数
Properties
| Name |
Type |
Default |
Description |
show |
boolean
|
true
|
路径显隐 |
smooth |
boolean
|
false
|
路径圆滑 |
noseToTail |
boolean
|
false
|
路径首尾相联 |
positions |
Array.<object>
|
|
经纬度和高度的列表,值交替 [{lon,lat,alt},...] |
|
positions[].lng |
number
|
|
经度 |
positions[].lat |
number
|
|
纬度 |
positions[].alt |
number
|
|
高度 |
label |
object
|
|
标签对象
Properties
| Name |
Type |
Default |
Description |
show |
string
|
|
标签显隐 |
position |
string
|
|
标签位置 |
position |
object
|
|
标签位置
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
|
视野缩放最远距离 |
|
|