VectorGraphics

new IonSdkGeometry.VectorGraphics(options)

An optionally time-dynamic vector.
Name Type Description
options VectorGraphics.ConstructorOptions optional Object describing initialization options

Members

color : Property|undefined

Gets or sets the Color Property specifying the the vector's color.

readonly definitionChanged : Event

Gets the event that is raised whenever a new property is assigned.

direction : Property|undefined

Gets or sets the Cartesian3 Property specifying the the vector's direction.

length : Property|undefined

Gets or sets the numeric Property specifying the the vector's graphical length in meters.

minimumLengthInPixels : Property|undefined

Gets or sets the numeric Property specifying the the vector's minimum length in pixel.

show : Property|undefined

Gets or sets the boolean Property specifying the vector's visibility.

Methods

clone(result)VectorGraphics

Duplicates a VectorGraphics instance.
Name Type Description
result VectorGraphics optional The object onto which to store the result.
Returns:
The modified result parameter or a new instance if one was not provided.

merge(source)

Assigns each unassigned property on this object to the value of the same property on the provided source object.
Name Type Description
source VectorGraphics The object to be merged into this object.

Type Definitions

IonSdkGeometry.VectorGraphics.ConstructorOptions

Initialization options for the VectorGraphics constructor
Properties:
Name Type Attributes Default Description
show Property | Boolean <optional>
true Determines if the vector will be shown.
position Property | Cartesian3 <optional>
Cartesian3.ZERO The position of the origin of the vector in WGS84 coordinates.
direction Property | Cartesian3 <optional>
Cartesian3.UNIT_Y The direction of the vector in WGS84 coordinates. This is assumed to be normalized.
length Property | Number <optional>
1.0 The length of the vector in meters.
minimumLengthInPixels Property | Number <optional>
0.0 The minimum length of the vector in pixels.
color Property | Color <optional>
Color.WHITE The color of the vector. The alpha value is ignored; the vector is always opaque.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.