KmlTrack constructor

KmlTrack({
  1. required List<KmlTrackElement> elements,
  2. required KmlAltitudeMode altitudeMode,
  3. bool isExtruded = false,
  4. bool isTessellated = false,
  5. KmlModel? model,
})

Creates a KmlTrack from an array of KmlTrackElement using a specified altitude mode, extrusion, tessellation, and a KmlModel.

Parameters:

  • elements — The individual elements of the track.
  • altitudeMode — Determines how altitude values are interpreted.
  • isExtruded — True if the track is extruded, false otherwise.
  • isTessellated — True if the track is tessellated, false otherwise.
  • model — The optional model used to represent the track's current position. Its geometry will be ignored.