Class: GlobeDotSymbol

csplotting~ GlobeDotSymbol


new GlobeDotSymbol(options)

构造点态势符号
Parameters:
Name Type Description
options Object
Properties
Name Type Argument Default Description
position Cesium.Cartesian3 点态势符号的位置信息
width number <optional>
32 点态势符号的图标宽度
height number <optional>
32 点态势符号的图标高度
strokeColor string <optional>
'#ff0000' 点态势符号的线颜色
strokeOpacity number <optional>
1.0 点态势符号的线透明度
strokeWidth number <optional>
2.0 点态势符号的线宽
fill bool <optional>
false 点态势符号是否填充
fillColor string <optional>
'#ffffff' 点态势符号的填充色
fillOpacity number <optional>
0.5 点态势符号的填充透明度
scale number <optional>
1.0 点态势符号的缩放比例
rotation number <optional>
0.0 点态势符号的旋转角度
noteText string <optional>
null 点态势符号的附加文字
noteFont string <optional>
'16px sans-serif' 点态势符号的附加文字的字体
noteFillColor string <optional>
'#ffffff' 点态势符号的附加文字的字体填充颜色
noteOutlineColor string <optional>
'#ffffff' 点态势符号的附加文字的字体边线颜色
noteOutlineWidth number <optional>
1.0 点态势符号的附加文字的字体边线宽度
noteOffset Array.<number> <optional>
[25,0] 点态势符号的附加文字的屏幕像素偏移
noteScale number <optional>
1.0 点态势符号的附加文字的缩放比例
noteTextAlign string <optional>
'left' 点态势符号的附加文字的对齐方式
scaleByDistance Cesium.NearFarScalar <optional>
点态势符号随视角距离的缩放比例,示例:new Cesium.NearFarScalar(1.5e2, 1.5, 8.0e6, 0.0);

Extends

Methods


getPosition()

获取点标绘的位置信息

setPosition(position)

设置点标绘的位置信息
Parameters:
Name Type Description
position Cartesian3 点标绘的位置信息

computeScreenSpacePosition( [result])

计算点屏幕坐标,如果是贴地的,会计算贴地的点屏幕坐标
Parameters:
Name Type Argument Description
result Cesium.Cartesian2 <optional>

getStrokeColor()

获取点标绘的线颜色

setStrokeColor(value)

设置点标绘的线颜色
Parameters:
Name Type Description
value string 线的颜色

getStrokeOpacity()

获取点标绘的线透明度

setStrokeOpacity(value)

设置点标绘的线透明度
Parameters:
Name Type Description
value Number 线的透明度

getStrokeWidth()

获取点标绘的线宽

setStrokeWidth(value)

设置点标绘的线宽
Parameters:
Name Type Description
value Number 线宽

getFill()

获取点标绘是否被填充

setFill(value)

设置点标绘是否被填充
Parameters:
Name Type Description
value Boolean 是否填充

getFillColor()

获取点标绘的填充颜色

setFillColor(value)

设置点标绘的填充颜色
Parameters:
Name Type Description
value string 填充颜色

getFillOpacity()

获取点标绘的填充透明度

setFillOpacity(value)

设置点标绘的填充透明度
Parameters:
Name Type Description
value Number 填充透明度

getSize()

获取点标绘的大小

setSize(value)

设置点标绘的大小
Parameters:
Name Type Description
value Array.<Number> 点标绘的大小

getScale()

获取点标绘的缩放比例

setScale(value)

设置点标绘的缩放比例
Parameters:
Name Type Description
value Number 缩放比例

getRotation()

获取点标绘的旋转角度

setRotation(angleInDegrees)

设置点标绘的旋转角度
Parameters:
Name Type Description
angleInDegrees Number 旋转角度

getHighlight()

获取点标绘是否高亮

setHighlight(value)

设置点标绘是否高亮
Parameters:
Name Type Description
value Boolean 是否高亮

getHighlightColor()

获取点标绘高亮的颜色

setHighlightColor(value)

设置点标绘高亮的颜色
Parameters:
Name Type Description
value string 高亮颜色

getPower()

获取点标绘的能力

setPower(value)

设置点标绘的能力
Parameters:
Name Type Description
value string 能力

getPowerColors()

获取点标绘的能力颜色

setPowerColors(powerColors)

设置点标绘的能力颜色
Parameters:
Name Type Description
powerColors Array.<string> 能力颜色

getNoteText()

获取点标绘的注记内容

setNoteText(noteText)

设置点标绘的注记内容
Parameters:
Name Type Description
noteText string 注记内容

getNoteFont()

获取点标绘的注记字体

setNoteFont(noteFont)

设置点标绘的注记字体
Parameters:
Name Type Description
noteFont string 注记字体

getNoteFillColor()

获取点标绘的注记填充颜色

setNoteFillColor(fillColor)

设置点标绘的注记填充颜色
Parameters:
Name Type Description
fillColor string 注记填充颜色

getNoteOutlineColor()

获取点标绘注记的线颜色

setNoteOutlineColor(outlineColor)

设置点标绘注记的线颜色
Parameters:
Name Type Description
outlineColor string 线颜色

getNoteOutlineWidth()

获取点标绘注记的线宽

setNoteOutlineWidth(outlineWidth)

设置点标绘注记的线宽
Parameters:
Name Type Description
outlineWidth Number 线宽

getNoteOffset()

获取点标绘注记的偏移量

setNoteOffset(offset)

设置点标绘注记的偏移量
Parameters:
Name Type Description
offset Array.<Number> 偏移量

getNoteTextAlign()

获取点标绘注记的文本对齐方式

setNoteTextAlign(textAlign)

设置点标绘注记的文本对齐方式
Parameters:
Name Type Description
textAlign string 对齐方式

getNoteScale()

获取点标绘注记的缩放比例

setNoteScale(scale)

设置点标绘注记的缩放比例
Parameters:
Name Type Description
scale Number 缩放比例

toJson()

导出为json
Overrides:

<static> fromJson(jsonObject, options)

从json对象中构造点态势符号
Parameters:
Name Type Description
jsonObject Object json对象,保存的是点标绘对象
options Object
Properties
Name Type Argument Description
parentLayer HTMLElement | string <optional>
新的点标绘对象所在的父图层组,如果存在,则自动将新的点标绘对象添加到父图层组中
pickId * <optional>
鼠标选取到新的点标绘时返回的对象
Returns:
Type
module:csplotting.DotSymbol

<static> copy(object, newOptions)

拷贝点态势符号对象,构造新的点态势符号
Parameters:
Name Type Description
object Object 点标绘对象
newOptions Object
Properties
Name Type Argument Description
parentLayer HTMLElement | string <optional>
新的点标绘对象所在的父图层组,如果存在,则自动将新的点标绘对象添加到父图层组中
pickId * <optional>
鼠标选取到新的点标绘时返回的对象
Returns:
Type
module:csplotting.DotSymbol

destroy()

销毁点态势符号
Overrides:

getPlottingLayer()

获取标绘图层
Inherited From:
Overrides:

setPlottingLayer(plottingLayer)

设置标绘图层
Parameters:
Name Type Description
plottingLayer * 标绘图层
Inherited From:
Overrides:

getLibID()

获取标绘符号的库号
Inherited From:
Overrides:

getCode()

获取标绘符号的代号
Inherited From:
Overrides:

bind(symbol)

绑定二维标绘,一旦绑定之后,调用三维标绘的相关接口时,二维标绘会同步改变
Parameters:
Name Type Description
symbol * 标绘符号
Inherited From:
Overrides:
See:

unbind()

解除绑定二维标绘
Inherited From:
Overrides:
See:

getUuid()

获取标绘符号的唯一标识(UUID)
Inherited From:
Overrides:

getPickId()

鼠标选取到当前标绘符号时返回的对象
Inherited From:
Overrides:

getVisible()

获取标绘符号的显示隐藏状态
Inherited From:
Overrides:

setVisible(value)

设置标绘符号的显示隐藏状态
Parameters:
Name Type Description
value Boolean 标绘符号的显隐状态
Inherited From:
Overrides:

获取标绘符号闪烁的状态
Inherited From:
Overrides:

设置标绘符号是否闪烁
Parameters:
Name Type Description
value Boolean 标绘符号闪烁状态
Inherited From:
Overrides:

getPickable()

获取标绘符号是否可以被选中
Inherited From:
Overrides:

setPickable(value)

设置标绘符号是否可以被选中
Parameters:
Name Type Description
value Boolean 是否可以被选中
Inherited From:
Overrides:

getCustom()

获取用户自定义对象
Inherited From:
Overrides:

setCustom(customObj)

设置用户自定义对象
Parameters:
Name Type Description
customObj * 用户自定义对象
Inherited From:
Overrides:

dispatchEvent(event)

发送事件消息,每个事件消息都有类型(type),所有监听此对象对应类型事件的监听者都会接收到相应的事件消息
Parameters:
Name Type Description
event string | module:events.Event 事件对象
Inherited From:
Overrides:

on(type, listener [, opt_this])

指定监听器监听指定类型的事件
Parameters:
Name Type Argument Default Description
type string 事件类型
listener callback | function 监听器
opt_this Object <optional>
target 在监听器中的`this`所指示的对象,默认是`target`自身
Inherited From:
Overrides:
Returns:
监听器的唯一标识.
Type
Object

once(type, listener [, opt_this])

指定监听器只监听一次指定类型的事件
Parameters:
Name Type Argument Default Description
type string 事件类型
listener callback | function 监听器
opt_this Object <optional>
target 在监听器中的`this`所指示的对象,默认是`target`自身
Inherited From:
Overrides:
Returns:
监听器的唯一标识.
Type
Object

un(type, listener [, opt_this])

取消指定监听器监听指定类型的事件
Parameters:
Name Type Argument Default Description
type string 事件类型
listener callback | function 监听器
opt_this Object <optional>
target 在监听器中的`this`所指示的对象,默认是`target`自身
Inherited From:
Overrides:

unByKey(key)

根据监听器的唯一标识取消指定监听器监听事件,监听器的唯一标识通过`on()`或者`once()`返回得到
Parameters:
Name Type Description
key Object | Array.<Object> 监听器的唯一标识,通过`on()`或者`once()`返回得到,可以是多个监听器的唯一标识数组
Inherited From:
Overrides: