Type Alias TAddPathOptions

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

Options for controlling the behavior of a Path.

Type declaration

  • OptionalaccentColor?: string

    Accent color that is applied to the path pulse and path arrows

    '#ffffff'
    
  • 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.

    0.4
    
  • 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.

    0.2
    
  • 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