Type Alias TNavigationOptions

TNavigationOptions: {
    createMarkers?: {
        connection?: boolean;
        departure?: boolean;
        destination?: boolean;
    };
    pathOptions?: {
        accentColor?: string;
        animateArrowsOnPath?: boolean;
        color?: string;
        displayArrowsOnPath?: boolean;
        farRadius?: number;
        nearRadius?: number;
    };
    polygons?: {
        departure?: string;
    };
}

Options for navigation.

Type declaration

  • OptionalcreateMarkers?: {
        connection?: boolean;
        departure?: boolean;
        destination?: boolean;
    }

    Controls whether markers are created for the departure, destination, and connection points.

    • Optionalconnection?: boolean

      Controls whether markers are created for connection points.

      true
      
    • Optionaldeparture?: boolean

      Controls whether a marker is created for the departure point.

      true
      
    • Optionaldestination?: boolean

      Controls whether a marker is created for the destination point.

      true
      
  • OptionalpathOptions?: {
        accentColor?: string;
        animateArrowsOnPath?: boolean;
        color?: string;
        displayArrowsOnPath?: boolean;
        farRadius?: number;
        nearRadius?: number;
    }

    Options for the path.

    • OptionalaccentColor?: string

      The accent color of the path. This is applied to arrows if they are displayed

      'blue'
      
    • OptionalanimateArrowsOnPath?: boolean

      Controls whether arrows are animated.

      false
      
    • Optionalcolor?: string

      The color of the path.

      '#40A9FF'
      
    • OptionaldisplayArrowsOnPath?: boolean

      Controls whether arrows are displayed on the path.

      false
      
    • OptionalfarRadius?: number

      The radius of the path far from the markers.

      1
      
    • OptionalnearRadius?: number

      The radius of the path near the markers.

      0.25
      
  • Optionalpolygons?: {
        departure?: string;
    }

    Options for the departure and destination polygons.

    • Optionaldeparture?: string

      The color of the departure polygon.

      '#40A9FF'