Constructor
new CreateCircle()
Extends
Members
centerPoint
Properties:
Name | Type | Description |
---|---|---|
centerPoint |
Cesium.Entity | 圆中心点 |
entity
- Description:
- 图标entity对象
- Overrides:
Properties:
Name | Type | Description |
---|---|---|
entity |
Cesium.Entity | entity对象 |
图标entity对象
objId
- Overrides:
Properties:
Name | Type | Description |
---|---|---|
objId |
String | Number | 唯一id |
position
Properties:
Name | Type | Description |
---|---|---|
position |
Cesium.Cartesian3 | 圆中心点坐标 |
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 | 鼠标提示框样式 |
radius
Properties:
Name | Type | Description |
---|---|---|
圆半径 |
Number |
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(callback)
- Description:
- 结束绘制cartesiansToLnglats
- Overrides:
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | 结束绘制后回调函数 |
endEdit(callback)
- Description:
- 结束编辑
- Overrides:
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
remove()
- Description:
- 移除当前entity对象
- Overrides:
setClientScale(scale)
- Description:
- 此方法用于 地图界面缩放问题(transform:translate(2))
- Overrides:
Parameters:
Name | Type | Description |
---|---|---|
scale |
Number | 缩放比例 |
setOwnProp(prop)
- Description:
- 设置自定义属性
- Overrides:
Parameters:
Name | Type | Description |
---|---|---|
prop |
Object | 属性 |
setVisible(visible)
- Description:
- 设置entity对象的显示隐藏
- Overrides:
Parameters:
Name | Type | Description |
---|---|---|
visible |
Boolean |
start(callback)
- Description:
- 开始绘制
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | 绘制成功后回调函数 |
startEdit(callback)
- Description:
- 开始编辑
- Overrides:
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | 回调函数 |
zoomTo()
- Description:
- 缩放至当前绘制的对象
- Overrides: