Type Alias TAddPathOptions

TAddPathOptions: {
    adjustedAltitude?: boolean;
    animateArrowsOnPath?: boolean;
    animateDrawing?: boolean;
    color?: string;
    displayArrowsOnPath?: boolean;
    drawDuration?: number;
    farRadius?: number;
    farZoom?: number;
    flattenPath?: boolean;
    interactive?: boolean;
    maxAdjustedAltitude?: number;
    minAdjustedAltitude?: number;
    nearRadius?: number;
    nearZoom?: number;
    pulseColor?: string;
    pulseIterations?: number;
    pulsePauseDuration?: number;
    showPulse?: boolean;
}

Options for controlling the behavior of a Path.

Type declaration

  • OptionaladjustedAltitude?: boolean

    The path will be adjusted vertically to the tallest altitude along the path. The altitude is in meters.

    false
    
  • OptionalanimateArrowsOnPath?: boolean

    Animate arrows on path.

    true
    
  • OptionalanimateDrawing?: boolean

    Animate the drawing of the path in the direction of travel.

    true
    
  • Optionalcolor?: string

    Path Colour. Color can be set using CSS colors names DarkGoldenRod, as Hex strings #0000FF or the rgb values rgb(255,0,0).

    #4b90e2
    
  • OptionaldisplayArrowsOnPath?: boolean

    Show arrows on path.

    false
    
  • OptionaldrawDuration?: number

    Duration of path drawing in milliseconds.

    1500
    
  • OptionalfarRadius?: number

    Radius of path at furthest zoom, in metres.

    2.3 times nearRadius
    
  • OptionalfarZoom?: number

    Zoom level in meters where the path size is farRadius.

    10000
    
  • OptionalflattenPath?: boolean

    Flatten the path to a 2D line.

    false
    
  • Optionalinteractive?: boolean

    Whether the path should be clickable.

    false
    
  • OptionalmaxAdjustedAltitude?: number

    The maximum altitude of the path in meters. The altitude is in meters.

    Infinite
    
  • OptionalminAdjustedAltitude?: number

    The minimum altitude of the path in meters. The altitude is in meters.

    -Infinite
    
  • OptionalnearRadius?: number

    Radius of path at nearest zoom, in metres.

    1.8
    
  • OptionalnearZoom?: number

    Zoom level in meters where the path size is nearRadius.

    375
    
  • OptionalpulseColor?: string

    Colour of path pulse. Color can be set using CSS colors names DarkGoldenRod, as Hex strings #0000FF or the rgb values rgb(255,0,0).

    '#ffffff'
    
  • OptionalpulseIterations?: number

    Number of iterations to pulse to indicate direction.

    1
    
  • OptionalpulsePauseDuration?: number

    How many milliseconds to wait before starting the next pulse after the current pulse travels the entirety of the path.

    750
    
  • OptionalshowPulse?: boolean

    Show an animated pulse indicating the direction of travel.

    true