Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Polyline
    • Polyline

Index

Constructors

constructor

  • new Polyline(options: { distanceDisplayCondition?: DistanceDisplayCondition; id?: any; loop?: boolean; material?: Material; positions?: Cartesian3[]; show?: boolean; width?: number }, polylineCollection: PolylineCollection): Polyline
  • Parameters

    • options: { distanceDisplayCondition?: DistanceDisplayCondition; id?: any; loop?: boolean; material?: Material; positions?: Cartesian3[]; show?: boolean; width?: number }
      • Optional distanceDisplayCondition?: DistanceDisplayCondition
      • Optional id?: any
      • Optional loop?: boolean
      • Optional material?: Material
      • Optional positions?: Cartesian3[]
      • Optional show?: boolean
      • Optional width?: number
    • polylineCollection: PolylineCollection

    Returns Polyline

Properties

distanceDisplayCondition

distanceDisplayCondition: DistanceDisplayCondition

Gets or sets the condition specifying at what distance from the camera that this polyline will be displayed.

id

id: any

Gets or sets the user-defined value returned when the polyline is picked.

loop

loop: boolean

Gets or sets whether a line segment will be added between the first and last polyline positions.

material

material: Material

Gets or sets the surface appearance of the polyline. This can be one of several built-in Material objects or a custom material, scripted with Fabric.

positions

positions: Cartesian3[]

Gets or sets the positions of the polyline.

example

polyline.positions = Cesium.Cartesian3.fromDegreesArray([ 0.0, 0.0, 10.0, 0.0, 0.0, 20.0 ]);

show

show: boolean

Determines if this polyline will be shown. Use this to hide or show a polyline, instead of removing it and re-adding it to the collection.

width

width: number

Gets or sets the width of the polyline.