GroundPolylineGeometry

A description of a polyline on terrain or 3D Tiles. Only to be used with GroundPolylinePrimitive.

const positions = Cartesian3.fromDegreesArray([
-112.1340164450331, 36.05494287836128,
-112.08821010582645, 36.097804071380715,
-112.13296079730024, 36.168769146801104
]);

const geometry = new GroundPolylineGeometry({
positions : positions
});

Parameters

options

Options with the following properties:

See also

Constructors

Link copied to clipboard

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard

The type of path the polyline must follow. Valid options are ArcType.GEODESIC and ArcType.RHUMB.

Link copied to clipboard

The distance interval used for interpolating options.points. Zero indicates no interpolation. Default of 9999.0 allows centimeter accuracy with 32 bit floating point.

Link copied to clipboard

Whether during geometry creation a line segment will be added between the last and first line positions to make this Polyline a loop. If the geometry has two positions this parameter will be ignored.

Link copied to clipboard

The screen space width in pixels.