Type Alias TNavigationOptions

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

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
      
  • OptionalmarkerOptions?: {
        departureColor?: string;
        destinationColor?: string;
    }

    Options for the markers at the departure and destination.

    • OptionaldepartureColor?: string

      The color of the departure marker.

      '#1890FF'
      
    • OptionaldestinationColor?: string

      The color of the destination marker.

      '#722ED1'
      
  • 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