Class: BillboardObject

BillboardObject


new BillboardObject(options, _Dialog)

点标注
Parameters:
Name Type Default Description
options object 属性
Properties
Name Type Argument Default Description
id string 标注id
show boolean true 标注整体的显隐
name string 名称
position object {} 必填,位置
Properties
Name Type Description
lng number 经度
lat number 纬度
alt number 高度
heightMode number 3 高度模式(0:海拔高度;1:相对地表;2:依附地表; 3:依附模型)
scaleByDistance boolean <optional>
true 是否开启跟随视野缩放
near number <optional>
2000 视野缩放最近距离
far number <optional>
100000 视野缩放最远距离
billboard object 图标参数
Properties
Name Type Argument Default Description
show boolean <optional>
true 图标显隐
image string 图标路径
defaultImage string 默认图标的唯一标识
scale number <optional>
3 图标放大倍数
label object 文字参数
Properties
Name Type Argument Default Description
text string <optional>
文字内容
show boolean <optional>
true 文字显隐
fontFamily number <optional>
0 文字字体项 0:黑体;1:思源黑体;2:庞门正道标题体;3:数黑体
fontSize number <optional>
39 文字大小, 单位px
color string <optional>
#00ffff 文字颜色
attribute object 属性内容
Properties
Name Type Default Description
link object {} 链接
Properties
Name Type Default Description
content array [] 链接内容
content[].name string 链接名称
content[].url string 链接地址
vr object {} 全景图
Properties
Name Type Default Description
content array [] 全景图内容
content[].name string 名称
content[].url string 地址
ptions.attribute.camera object {} 摄像头
options.attribute.camera.content array [] 摄像头内容
options.attribute.ISC object {} ISC
Properties
Name Type Default Description
content array [] ISC内容
options.attribute.goods object {} 物资
Properties
Name Type Default Description
content array [] 物资内容
content[].ID string ID
content[].name string 名称
content[].cnt string 数量
options.richTextContent string 富文本内容
options.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 高度
_Dialog object 弹框事件
Properties
Name Type Description
confirmCallBack function 弹框确认时的回调
instructSubmit(id,name,instruct) function 提交指令(ID, 名称,指令内容)
operatingPointSubmit(id,name,operatingPoint) function 设置操作点(ID, 名称,操作点内容)

Methods


<async> edit(state)

编辑框
Parameters:
Name Type Default Description
state boolean false 状态: true打开, false关闭

openRichTextEditor()

打开富文本框