This is the documentation of version 1.0.0-rc.4. Go to the latest version, 1.0.0-rc.5.
TomTom Maps for JavaScript
    Preparing search index...

    Type Alias DisplayCountryCrossingProps

    DisplayCountryCrossingProps: DisplayRouteRelatedProps & {
        fromCountryCode: string;
        fromSectionStartPointIndex: number;
        label: string;
        toCountryCode: string;
        toSectionStartPointIndex: number;
    }

    Display-ready props of one border crossing.

    Type Declaration

    • fromCountryCode: string

      ISO 3166-1 alpha-2 code of the country the route leaves.

    • fromSectionStartPointIndex: number

      startPointIndex of the country section the route leaves, which identifies that section on RouteProps.sections even when the route enters the same country twice.

    • label: string

      The label its bubble stretches around, such as 'ES → FR'.

    • toCountryCode: string

      ISO 3166-1 alpha-2 code of the country the route enters.

    • toSectionStartPointIndex: number

      startPointIndex of the country section the route enters.