Type Alias TNavigationOptions

TNavigationOptions: {
    createMarkers?: {
        connection?: boolean | ((instruction: TDirectionInstruction) => Marker);
        departure?: boolean | ((instruction: TDirectionInstruction) => Marker);
        destination?: boolean | ((instruction: TDirectionInstruction) => Marker);
    };
    inactivePathOptions?: {
        accentColor?: string;
        animateArrowsOnPath?: boolean;
        color?: string;
        displayArrowsOnPath?: boolean;
        drawDuration?: number;
        farRadius?: number;
        interactive?: boolean;
        nearRadius?: number;
    };
    markerOptions?: {
        departureColor?: string;
        destinationColor?: string;
    };
    pathOptions?: {
        accentColor?: string;
        animateArrowsOnPath?: boolean;
        color?: string;
        displayArrowsOnPath?: boolean;
        drawDuration?: number;
        farRadius?: number;
        interactive?: boolean;
        nearRadius?: number;
    };
    setMapOnConnectionClick?: boolean;
}

Options for navigation.

Type declaration

  • OptionalcreateMarkers?: {
        connection?: boolean | ((instruction: TDirectionInstruction) => Marker);
        departure?: boolean | ((instruction: TDirectionInstruction) => Marker);
        destination?: boolean | ((instruction: TDirectionInstruction) => Marker);
    }

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

    • Optionalconnection?: boolean | ((instruction: TDirectionInstruction) => Marker)

      Controls whether markers are created for connection points and allows a custom marker to be created.

      true
      
    • Optionaldeparture?: boolean | ((instruction: TDirectionInstruction) => Marker)

      Controls whether a marker is created for the departure point and allows a custom marker to be created.

      true
      
    • Optionaldestination?: boolean | ((instruction: TDirectionInstruction) => Marker)

      Controls whether a marker is created for the destination point and allows a custom marker to be created.

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

    Path Options for the non-current path in multi-destination mode.

    • 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
      
    • OptionaldrawDuration?: number

      Duration in milliseconds for the path to be drawn.

      1000
      
    • OptionalfarRadius?: number

      The radius of the path far from the markers.

      1
      
    • Optionalinteractive?: boolean

      Whether the path should be clickable.

      false
      
    • OptionalnearRadius?: number

      The radius of the path near the markers.

      0.25
      
  • 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;
        drawDuration?: number;
        farRadius?: number;
        interactive?: boolean;
        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
      
    • OptionaldrawDuration?: number

      Duration in milliseconds for the path to be drawn.

      1000
      
    • OptionalfarRadius?: number

      The radius of the path far from the markers.

      1
      
    • Optionalinteractive?: boolean

      Whether the path should be clickable.

      false
      
    • OptionalnearRadius?: number

      The radius of the path near the markers.

      0.25
      
  • OptionalsetMapOnConnectionClick?: boolean

    Controls whether the map should be set to the floor of the connection point when a connection point is clicked.

    true