Class: BillboardObject

BillboardObject


new BillboardObject(sdk, options, _Dialog)

创建点标注
Parameters:
Name Type Description
sdk object sdk
options object 标注参数
Properties
Name Type Argument Default Description
id string 标注id
positions object 位置
Properties
Name Type Description
lng number 经度
lat number 纬度
alt number 高度
scaleByDistance boolean <optional>
false 图标是否跟随视角变化进行字段缩放
show boolean <optional>
true 标注整体的显示/隐藏
near number <optional>
2000 近端可视距离 scaleByDistance为true时生效
far number <optional>
100000 远端可视距离 scaleByDistance为true时生效
billboard object 标注中图标的参数
Properties
Name Type Argument Default Description
show boolean <optional>
true 标注中图标的显示与隐藏
image string 图标路径
scale number <optional>
1 图标倍数
label object 标注中文字的参数
Properties
Name Type Argument Default Description
text string <optional>
标注中文字
show boolean <optional>
true 标注中文字显示/隐藏
fontSize number <optional>
20 标注中文字大小 单位px,微软雅黑
color string <optional>
#07f8e4 标注中文字颜色
_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()

打开富文本框