Name | Type | Description | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
参数选项:
|
Example:
let point = new Cesium.GeoPoint3DElement({
viewer,
positions:[[114.45721783302606, 30.472923743569144]],
height:100,
labelOptions: {
show: true,
text: "无人机",
font: '14px 黑体',
fillColor: Cesium.Color.WHITE,
outlineColor: Cesium.Color.BLACK,
outlineWidth: 3.0,
style: Cesium.LabelStyle.FILL_AND_OUTLINE,
pixelOffset: new Cesium.Cartesian2(0,-10),
disableDepthTestDistance: Number.POSITIVE_INFINITY
},
billboardOptions:{
image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAClklEQVR42u2XPWgUURDHr9AqXCmmCQaiCVhc1MYYEU5IY5QUcgdpFImQIhrRnKLlNX6RQEQwERHygUb8wMLCiyIsUVALLdQjeCpExfhRBI1CtFv/C/8Hw/Budy/7CgsHftzuvJl5s+/Nm7ykUv8lnrSAHjAEpoAHKuAnqVA3RZse+iSWPJgFPvkMSuAaGAWnySh1JdoY+1nGWLacYKCDoMEyXiRaGujjM8aypZtB9ih9Hchy2T0+1ymbLvp2J0mgjUH0VxbEMhsKymYf9W1JEqhnkCtK38ikzAoUqZMyQN/6pIXocxKb3CGpKvXhuzgJYQmEifMEdoBh8AiUwTxYUnWQpU/WdQJvxSRLTCBY+nPguCpUM/GCywReg7Ngq2Xcs5yU4Oy/dJXAHJiI2Oc3omEZOU/fxDIGHijdKurNl28A3/l+mDYvaJNYDjDwWna7PvDOsuydYFEUrU/fxNLKgnoiCvE22GuxXQ+mafOLK+NE+sQXb4ywHVdb4UzMnt8D6yzjm8EMbWZcTtzEL6+ILVjkUheZ2JxqSD/ACGhPOvkZ8JtBzQrcAJOsctNwnoKT4D11H5hE8HwTpGudODhmt8S+N4rn4PeIxeeSstnJRM2pWFNLAs/omFf7H+z9Qz5vEfY56kqie15Vzeo5WBln8l41uQlo/uym+V4W48HF9JvYc0+1YZPEQNyv9yy6ryKpDga8zJqQxy5P2wUV4y6LdXXY5LsYbL9l7DHHBvl+SlT9JHWDfP8DNin/bRzLhSVwiEZNVcYLohOmWf1l1QEvghVV/INtOhqWwAXwKWKLdoOPZLuohy+gP8L3FROsKh5vOlHSDO5z8mP87Y/hNx91vWu3XLfjcL0G28jumBHXbddk/rn/ev8CXvwR7mo/OfEAAAAASUVORK5CYII=",
pixelOffset: new Cesium.Cartesian2(0,40),
scale: 1
}
});
Extends
Members
三维点
分类标识
- Inherited From:
符号编号
- Inherited From:
颜色
- Inherited From:
控制点
- Inherited From:
属性改变事件
- Inherited From:
是否已删除
- Inherited From:
符号说明
- Inherited From:
geoElementType : GeoElementType
元素符号类型
- Inherited From:
外包盒
- Inherited From:
文本标签
符号名称
- Inherited From:
- Default Value:
GEOSYMBOL
对象标识
- Inherited From:
OID
- Inherited From:
元素排序
- Inherited From:
父元素ID
- Inherited From:
点圆形
positions : PositionProperty|Cartesian3
点位位置
其他属性
- Inherited From:
图示编号
- Inherited From:
几何
- Inherited From:
样式
- Inherited From:
透明度
- Inherited From:
符号类型
- Inherited From:
更新时间
- Inherited From:
版本信息
- Inherited From:
是否可见
- Inherited From:
Methods
获取GeoPoint3DElement的对象实例,通过feature结构数据。
静态函数
Name | Type | Description |
---|---|---|
viewer |
Viewer | 地球视图 |
feature |
Object | 要素 |
Returns:
GeoPoint3DElement
Example:
//feature结构示例
var feature = {
"type": "Feature",
"properties": {
"OID": "", //编号
"elementType": "BILLBOARD", //类型
"style": {
"image": "",
"scale": 1.0,
"pixelOffset": [0, 0],
"horizontalOrigin": 0,
"verticalOrigin": 0,
"color": "",
"width": 36,
"height": 36
}, //样式
"boundingSphere": "", //外包盒,球或盒子
"controlGeometry": null, //控制点,一般为多点集合,点标号类型时为空值
"name": "", //元素名称
"visible": true, //可见性
"color": "", //颜色
"transparent": 1, //透明度
"property": {}, //其他属性
"objectKey": "", //对象标识
"parentID": "", //父元素ID
"deleted": false, //是否已删除
"order": 0, //元素排序
"updateTime": Date //更新时间
},
"geometry": { "type": "Point", "coordinates": [ x, y, z ] } //几何
}
获取GeoPoint3DElement的对象实例,通过feature结构数据。
静态函数
Name | Type | Description |
---|---|---|
viewer |
Viewer | 地球视图 |
feature |
Object | 要素 |
Returns:
GeoPoint3DElement
Example:
//feature结构示例
var feature = {
"type": "Feature",
"properties": {
"OID": "", //编号
"elementType": "POINT3D", //类型
"style": {
"image": "",
"scale": 1.0,
"pixelOffset": [0, 0],
"horizontalOrigin": 0,
"verticalOrigin": 0,
"color": "",
"width": 36,
"height": 36
}, //样式
"boundingSphere": "", //外包盒,球或盒子
"controlGeometry": null, //控制点,一般为多点集合,点标号类型时为空值
"name": "", //元素名称
"visible": true, //可见性
"color": "", //颜色
"transparent": 1, //透明度
"property": {}, //其他属性
"objectKey": "", //对象标识
"parentID": "", //父元素ID
"deleted": false, //是否已删除
"order": 0, //元素排序
"updateTime": Date //更新时间
},
"geometry": { "type": "Point", "coordinates": [ x, y, z ] } //几何
}
销毁元素符号
在场景中移除元素符号
在场景中渲染元素符号
旋转
- Inherited From:
缩放
- Inherited From:
序列化为GeoGlobe.Feature类实例
序列化为JSON数据
平移
- Inherited From: