查阅Cesium API

创建点。

Author:
  • 张丹钊

方法

向三维场景中添加一个div点。

createDivPoint(name, degrees, option)DivPoint

参数描述:
名称 类型 描述
name String 可选 名称。
degrees Object 可选 经纬度
option Object 可选 参数
名称 类型 默认值 描述
id String 可选 id
GroupID String 可选 GroupID
type String "default" 可选 类型【default | custom】
offset String | Array "l" 可选 对齐方式【左: l | 中: c | 右: r | [左|中|右, 20]】
description String 可选 内容
near Number 0 可选 最小可视距离
far Number Infinity 可选 最大可视距离
onclick function 可选 点击事件
update function 可选 更新事件
返回:
返回DivPoint对象
删除DivPoint

deleteObject()

获取Point的显示隐藏

getVisibility()

设置DivPoint的显示隐藏

setVisibility(show)

参数描述:
名称 类型 描述
show Boolean 可选 true|false
更新div点参数

updateDivPoint(name, option)

参数描述:
名称 类型 描述
name String 名称
option Object 描述
div点实时更新函数

updateDivPointEvent()