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 ManeuverView

    The layout of the junction at a maneuver: which way the route goes, and which other ways lead off it.

    Useful for drawing a junction diagram — the route's own direction plus the roads it passes up.

    // A right turn at a T-junction where the other arm continues straight
    const view: ManeuverView = { onRouteAngle: 'RIGHT', offRouteAngles: ['STRAIGHT'] };
    type ManeuverView = {
        offRouteAngles: ManeuverAngle[];
        onRouteAngle?: ManeuverAngle;
    }
    Index
    offRouteAngles: ManeuverAngle[]

    The directions of the other roads at the junction, which the route does not take.

    Empty when the junction has no other arms.

    onRouteAngle?: ManeuverAngle

    The direction the route takes through the junction.