Billboard

布告板封装类

new TS.Billboard(position, icon)

布告板的封装类
Name Type Description
position Position | String
icon String | Base64 图片的内容
Example:
new TS.Billboard("120,30,0","./static/image/image.jpg")

new TS.Billboard("[120,30,0]","./static/image/image.jpg")

new TS.Billboard(new TS.Position(120,30,0),"./static/image/image.jpg")

Extends

Members

allowDrillPick : Boolean

获取 或 设置 是否支持穿透选择
Inherited From:
获取 或 设置属性
Inherited From:

delegate : Cesium.Entity

获取CesiumEntity对象
Inherited From:

description : String

描述
Inherited From:

editabled : Boolean

获取 或 设置 是否可编辑
Inherited From:
获取 或 设置 icon
获取 name
Inherited From:
获取父类
Inherited From:
鼠标点击订阅
Inherited From:
鼠标双击订阅
Inherited From:
鼠标离开订阅
Inherited From:
鼠标悬浮订阅
Inherited From:

onMouseRightClick

订阅鼠标右键点击
Inherited From:
覆盖物添加订阅
Inherited From:

onOverlayRemoved : Event

覆盖物移除订阅
Inherited From:

readonly overlayId : String

获取底层Id
Inherited From:
获取 或 设置 坐标点
获取 或 设置是否显示
Inherited From:
获取 或 设置 布告板的大小
获取状态
Inherited From:

Methods

static TS.Billboard.fromEntity(entity)Billboard

从Entity中获取
Name Type Description
entity Cesium.Entity
Returns:
快速添加到图层中
Name Type Description
layer Layer
Returns:
Inherited From:
删除图层
Returns:
Inherited From:
飞行到覆盖物
Inherited From:

setBottomCircle(radius, style, rotateAmount)Billboard

设置底面范围圆
Name Type Description
radius Number 半径
style Style 可选的 圆样式,参考CesiumEllipse
rotateAmount Number 可选的 动画
Returns:

setLabel(text, textStyle)Overlay

设置Label
Name Type Description
text stirng
textStyle
Returns:
Inherited From:
设置样式
Name Type Description
style Cesium.BillboardGraphics.ConstructorOptions 样式对象
Returns:
Example:
{
  "scale": 1, //比例
  "pixelOffset": { "x": 0, "y": 0 }, //偏移像素
  "rotation": 0, //旋转角度
  "translucencyByDistance": {
    "near": 0, //最近距离
    "nearValue": 0, //最近距离值
    "far": 1, //最远距离值
    "farValue": 0 //最远距离值
  }, //根据距离设置透明度
  "scaleByDistance": {
    "near": 0, //最近距离
    "nearValue": 0, //最近距离值
    "far": 1, //最远距离值
    "farValue": 0 //最远距离值
  }, //根据距离设置比例
  "distanceDisplayCondition": {
    "near": 0, //最近距离
    "far": Number.MAX_VALUE //最远距离
  }, //根据距离设置可见
  "disableDepthTestDistance": 0 // 深度检测距离,用于防止剪切地形,设置为零时,将始终应用深度测试。设置为Number.POSITIVE_INFINITY时,永远不会应用深度测试。
}
设置垂直引线
Name Type Description
style PolylineStyle Cesium Polyline的样式
Returns:

toGeojson()string

保存为Geojson
Returns:
Inherited From:
缩放到覆盖物
Inherited From: