GeoEllipseElement

圆形元素符号类

new Cesium.GeoEllipseElement(options)

Name Type Description
options Object optional 参数选项:
Name Type Description
viewer Viewer optional 关联视图对象
Author:
  • zj
Example:
let ellipseEl = new Cesium.GeoEllipseElement({
 	viewer:viewer,
 	coordinates:[-110.0,20.0,-80.0,25.0],
 	fill:false,
 	outline:true,
 	outlineColor: Cesium.Color.RED,
 	outlineWidth:5
 });

Extends

Members

classType : String

分类标识
Inherited From:

code : String

符号编号
Inherited From:

color : Color

颜色
Inherited From:

controlGeometry : Object

控制点
Inherited From:

coordinates : PositionProperty|Cartesian3

点位位置

readonlydefinitionChanged : Event

属性改变事件
Inherited From:

deleted : Boolean

是否已删除
Inherited From:

description : String

符号说明
Inherited From:

geoElementType : GeoElementType

元素符号类型
Inherited From:

geometry : Object

外包盒
Inherited From:

name : String

符号名称
Inherited From:
Default Value: GEOSYMBOL

objectKey : String

对象标识
Inherited From:

OID : String

OID
Inherited From:

order : Number

元素排序
Inherited From:

parentID : Number

父元素ID
Inherited From:

property : Object

其他属性
Inherited From:

schemaCode : String

图示编号
Inherited From:

shape : Object

几何
Inherited From:

style : Object

样式
Inherited From:

transparent : Number

透明度
Inherited From:

type : String

符号类型
Inherited From:

updateTime : Date

更新时间
Inherited From:

version : String

版本信息
Inherited From:

visible : String

是否可见
Inherited From:

Methods

staticCesium.GeoEllipseElement.getInstanceByElementObj(viewer, feature)

获取GeoEllipseElement的对象实例,通过feature结构数据。 静态函数
Name Type Description
viewer Viewer 地球视图
feature Object 要素
Returns:
GeoEllipseElement
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 ] } //几何
}

staticCesium.GeoEllipseElement.getInstanceByFeature(viewer, feature)

获取GeoEllipseElement的对象实例,通过feature结构数据。 静态函数
Name Type Description
viewer Viewer 地球视图
feature Object 要素
Returns:
GeoEllipseElement
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 ] } //几何
}

destroy()

销毁元素符号

remove()

在场景中移除元素符号

rotation()

旋转
Inherited From:

scale()

缩放
Inherited From:

toGeoGlobeFeature()

序列化为GeoGlobe.Feature类实例

toGeoJSON()

序列化为JSON数据

translate()

平移
Inherited From: