Constructor
new CreateArrow()
Extends
Members
arrowPlot
Properties:
Name |
Type |
Description |
arrowPlot |
Object
|
箭头标绘对象 |
entity
- Overrides:
Properties:
Name |
Type |
Description |
entity |
Cesium.Entity
|
箭头实体 |
objId
- Overrides:
Properties:
Name |
Type |
Description |
objId |
String
|
Number
|
唯一id |
positions
- Overrides:
Properties:
Name |
Type |
Description |
positions |
Array.<Cesium.Cartesian3>
|
坐标数组 |
prompt
- Overrides:
Properties:
Name |
Type |
Description |
prompt |
Object
|
鼠标提示框 |
promptStyle
- Overrides:
Properties:
Name |
Type |
Description |
promptStyle |
Object
|
鼠标提示框样式 |
situationType
Properties:
Name |
Type |
Description |
situationType |
String
|
箭头类型(1~攻击箭头/2~攻击箭头平尾/3~攻击箭头燕尾/4~闭合曲面/5~钳击箭头/6~单尖直箭头/7~粗单尖直箭头/8~集结地/9~弓形面/10~粗直箭头/11~矩形棋/12~扇形/13~三角旗/14~曲线旗/15~曲线/16~单线箭头) |
state
- Overrides:
Properties:
Name |
Type |
Description |
state |
String
|
标识当前状态 no startCreate creating endCreate startEdit endEdit editing |
style
- Overrides:
Properties:
Name |
Type |
Description |
style |
Object
|
样式 |
type
- Overrides:
Properties:
Name |
Type |
Description |
type |
String
|
标绘类型 |
Methods
destroy()
- Description:
- Overrides:
done()
- Description:
- Overrides:
endCreate()
- Description:
- Overrides:
endEdit(callback)
- Description:
- Overrides:
Example
plotObj.endEdit(function(entity){})
Parameters:
Name |
Type |
Description |
callback |
function
|
回调函数 |
getCatesian3FromPX(px) → {Cesium.Cartesian3}
- Overrides:
Parameters:
Name |
Type |
Description |
px |
Object
|
像素坐标 |
Returns:
世界坐标
-
Type
-
Cesium.Cartesian3
getEntity() → {Cesium.Entity}
- Overrides:
Returns:
实体对象
-
Type
-
Cesium.Entity
getLnglats() → {Array}
- Description:
- Overrides:
Returns:
经纬度坐标数组
-
Type
-
Array
getPositions(isWgs84) → {Array}
- Overrides:
Parameters:
Name |
Type |
Description |
isWgs84 |
Boolean
|
是否转化为经纬度 |
Returns:
坐标数组
-
Type
-
Array
getStyle() → {Object}
- Description:
Returns:
样式
-
Type
-
Object
remove()
- Description:
- Overrides:
setClientScale(scale)
- Description:
- 此方法用于 地图界面缩放问题(transform:translate(2))
- Overrides:
Parameters:
Name |
Type |
Description |
scale |
Number
|
缩放比例 |
setOwnProp(prop)
- Description:
- Overrides:
Parameters:
Name |
Type |
Description |
prop |
Object
|
属性 |
setStyle(style)
- Description:
Parameters:
Name |
Type |
Description |
style |
Object
|
样式 |
setVisible(visible)
- Description:
- Overrides:
Parameters:
Name |
Type |
Description |
visible |
Boolean
|
|
start(callback)
- Description:
Parameters:
Name |
Type |
Description |
callback |
function
|
绘制成功后回调函数 |
startEdit()
- Description:
- Overrides:
zoomTo()
- Description:
- Overrides: