Constructor
new Add(viewer)
- Description:
构造函数
- Source:
Parameters:
Name | Type | Description |
---|---|---|
viewer |
Object | 地图场景对象 |
Classes
Methods
addBillboard(position, options) → {Entity}
- Description:
添加广告版
- Source:
Parameters:
Name | Type | Description |
---|---|---|
position |
Cartesian3 | 广告版位置,笛卡尔坐标 |
options |
BillboardOption | 广告版参数 |
Returns:
广告版对象,Entity类对象,参照Cesium
- Type
- Entity
addPanel(position, text, idopt, typeopt, maxHeightopt) → {Entity}
- Description:
添加热点面板
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
position |
Cartesian3 | 热点面板坐标,笛卡尔坐标 |
||
text |
String | 热点面板内容 |
||
id |
String |
<optional> |
可选,热点面板ID,具有唯一性 |
|
type |
String |
<optional> |
可选,热点面板类型,'hot' | 'process' |
|
maxHeight |
Number |
<optional> |
1000000
|
热点面板最大可视距离,超过该距离将移除 |
Returns:
热点面板对象,Entity类对象,参照Cesium
- Type
- Entity
addPoint(position, options) → {Entity}
- Description:
添加点
- Source:
Parameters:
Name | Type | Description |
---|---|---|
position |
Cartesian3 | 点位置,笛卡尔坐标 |
options |
PointOption | 点参数 |
Returns:
点对象,Entity类对象,参照Cesium
- Type
- Entity
addRadarNormal(positionopt, radiusopt, idopt) → {Entity}
- Description:
添加基础雷达
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
position |
Cartesian3 |
<optional> |
基础雷达中心点坐标,笛卡尔坐标 |
|
radius |
Number |
<optional> |
基础雷达扫描半径 |
|
id |
String |
<optional> |
null
|
可选:基础雷达id |
Returns:
基础雷达对象,Entity类对象,参照Cesium
- Type
- Entity
addRiver(positionsopt, idopt) → {Primitive|GroundPrimitive}
- Description:
添加水系(单个)
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
positions |
Array.<Cartesian3> |
<optional> |
水系边界节点集合,笛卡尔坐标 |
|
id |
String |
<optional> |
null
|
可选:水系对象id |
Returns:
水系对象,Primitive类对象,参照Cesium
- Type
- Primitive | GroundPrimitive