DomSignProperty

根据DOM字符串构建动目标标牌

new Cesium.DomSignProperty(options)

Name Type Description
options Object 对象具有以下属性:
Name Type Description
dom String DOM字符串
Example:
options.dom = "<div>Dom</div>"

Extends

Methods

clone()DomSignProperty

克隆对象
Returns:
成功返回克隆对象,否则返回undefined

getBillboardScale()Number

获取二维Billboard标牌的缩放
Returns:
缩放
Inherited From:

getDom()String

获取标牌DOM字符串
Returns:
DOM字符串

getIndecatorLineLength()Number

获取牵引线长度
Returns:
牵引线长度
Inherited From:

getIndecatorLineRotation()Number

获取标牌牵引线旋转角度
Returns:
牵引线旋转角度
Inherited From:

getIndecatorLineStyle()Object

获取牵引线样式
Returns:
样式
Inherited From:

getMovingTargetSignType()MovingTargetSignType

获取标牌类型
Returns:
标牌类型
Inherited From:

getSignRenderMode()SignRenderMode

获取标牌渲染模式
Returns:
返回渲染模式
Inherited From:

isShowIndecatorLine()boolean

获取标牌是否显示牵引线
Returns:
返回是否显示牵引线
Inherited From:

setBillboardScale(billboardScale)

设置二维Billboard标牌的缩放。当 signRenderMode == SignRenderMode.Billboard 时生效
Name Type Description
billboardScale Number 缩放
Inherited From:

setDom(dom)

设置标牌DOM字符串
Name Type Description
dom String DOM字符串

setIndecatorLineLength(indecatorLineLength)

设置标牌牵引线长度(单位:mm)
Name Type Description
indecatorLineLength Number 牵引线长度
Inherited From:

setIndecatorLineRotation(indecatorLineRotation)

设置牵引线旋转角度(以屏幕X轴正向为0,逆时针方向为正的角度,单位:度)
Name Type Description
indecatorLineRotation Number 旋转角度
Inherited From:

setIndecatorLineStyle(indecatorLineStyle)

设牵引线样式
Name Type Description
indecatorLineStyle Object 样式
Name Type Description
lineWidth Number 线宽(mm)
aryLineColors Array.<Color> 线色(例:[MGIS_SuperMap3D.Color(255, 0, 0, 1)])
Inherited From:

setIsShowIndecatorLine(showIndecatorLine)

设置是否显示牵引线
Name Type Description
showIndecatorLine boolean 是否显示牵引线
Inherited From:

setSignRenderMode(signRenderMode)

设置标牌渲染模式,不支持三维模式(SignRenderMode.Solid)
Name Type Description
signRenderMode SignRenderMode 渲染模式
Inherited From: