This is the documentation of version 0.62.0. 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.

      What alignment: 'route' turns the plaque by. Present whatever the alignment, so switching it is a restyle rather than a re-derive.

    • 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 is stretched around — '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.