GeoSingleArrowSymbol

new Cesium.GeoSingleArrowSymbol(options)

吉奥单箭头符号类
Name Type Description
options Object optional 参数选项:
Name Type Description
viewer Viewer optional 关联视图对象
positions Array optional 箭头符号节点数组,为保证正确绘制出可用的箭头形态至少需要给定2个节点的坐标
lineColor Color optional 边线颜色
lineWidth Number optional 边框宽度
lineStyle String optional 箭头符号线型,值可以为:GeoElement.LINE_STYLE.SOLID,GeoElement.LINE_STYLE.DASHED,GeoElement.LINE_STYLE.NONE
fillMode String optional 箭头符号填充模式,值可以为:solid,gradient,none
fillColor Color optional 箭头符号填充颜色
fillStartColor Color optional 箭头符号渐变填充起始颜色
fillEndColor Color optional 箭头符号渐变填充结束颜色
fillTransparency Color optional 箭头符号渐变填充透明度
visibleSwallowTail Color optional 是否开启箭头燕尾
Author:
  • zj
Example:
示例代码:
var symbol = new Cesium.GeoSingleArrowSymbol({
    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
});
Demo:

Extends

Members

code : String

符号编号
Inherited From:

readonlydefinitionChanged : Event

属性改变事件
Inherited From:

description : String

符号说明
Inherited From:

name : String

符号名称
Inherited From:
Default Value: GEOSYMBOL

schemaCode : String

图示编号
Inherited From:

type : String

符号类型
Inherited From:

version : String

版本信息
Inherited From:

visible : String

是否可见
Inherited From:

Methods

clone()

克隆当前对象实例

destroy()

销毁对象

getOptions()

根据当前实例属性生成相应的构造参数对象

getPathLength()Number

获取所有节点累计长度
Returns:
长度计算结果.

rotation()

旋转
Inherited From:

scale()

缩放
Inherited From:

toGeoGlobeFeature()

序列化为GeoGlobe.Feature类实例
Inherited From:

translate()

平移
Inherited From: