Name | Type | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
参数选项:
|
- GeoSingleArrowSymbol 聚合了吉奥单箭头符号类,请参阅。
Example:
示例代码:
var symbol = new Cesium.GeoSingleArrowElement({
viewer: viewer,
positions: [
[116.45304793070586, 31.592192169546728],
[116.71811652713569, 30.455176524911696],
[119.71811652713569, 31.455176524911696],
[119.71811652713569, 32.455176524911696],
[117.71811652713569, 32.455176524911696],
],
lineColor: new Cesium.Color(0, 1,1, 1),
lineWidth: 5,
lineStyle: GeoElement.LINE_STYLE.SOLID,
fillMode: "gradient",
fillColor: new Cesium.Color(0, 0,1, 1),
fillStartColor: new Cesium.Color(0, 0,1, 1),
fillEndColor: new Cesium.Color(0, 1,0, 1),
visibleSwallowTail: true
});
See:
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:
其他属性
- Inherited From:
图示编号
- Inherited From:
几何
- Inherited From:
样式
- Inherited From:
透明度
- Inherited From:
符号类型
- Inherited From:
更新时间
- Inherited From:
版本信息
- Inherited From:
是否可见
- Inherited From:
Methods
获取GeoSingleArrowElement的对象实例,通过feature结构数据。
静态函数
Name | Type | Description |
---|---|---|
viewer |
Viewer | 地球视图 |
feature |
Object | 要素 |
Returns:
GeoSingleArrowElement
Example:
//feature结构示例
var feature = {
"type": "Feature",
"properties": {
"OID": "", //编号
"elementType": "SINGLEARROW", //类型
"style": {
"visibleSwallowTail": true,
"lineColor": "rbga(1,0,1,1)",
"lineWidth": 1.0,
"lineStyle": GeoElement.LINE_STYLE.SOLID,
"fillMode": "gradient",
"fillColor": "rbga(0,0,1,1)",
"fillStartColor": "rbga(0,0,1,1)",
"fillEndColor": "rbga(0,0,1,1)",
"fillTransparency": 1
}, //样式
"boundingSphere": "", //外包盒,球或盒子
"controlGeometry": null, //控制点,一般为多点集合,点标号类型时为空值
"name": "", //元素名称
"visible": true, //可见性
"color": "rbga(0,0,1,1)", //颜色
"transparent": 1, //透明度
"property": {}, //其他属性
"objectKey": "", //对象标识
"parentID": "", //父元素ID
"deleted": false, //是否已删除
"order": 0, //元素排序
"updateTime": Date //更新时间
},
"geometry": { "type": "Polygon", "coordinates": [ [ [ x1, y1, z1 ], [ x2, y2, z2], ..., [ xn, yn, zn ] ] ] } //几何
}
销毁元素符号
在场景中移除元素符号
在场景中渲染元素符号
旋转
- Inherited From:
缩放
- Inherited From:
序列化为GeoGlobe.Feature类实例
序列化为JSON数据
平移
- Inherited From: