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

    Type Alias DisplayCountryCrossingProps

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

    Display-ready props of one border crossing.

    Type Declaration

    • bearing: number

      Bearing of the route where it crosses, in degrees clockwise from north.

      alignment: 'route' turns the plaque by this bearing. It is present whatever the alignment, so switching alignment restyles rather than re-derives.

    • 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 the plaque 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.