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

    Type Alias FlyoverAim

    FlyoverAim:
        | { metersAhead: number; mode: "distance" }
        | { mode: "points"; pointsAhead: number }
        | { fallbackMetersAhead: number; mode: "instruction" }

    What the camera points at, which is what decides how early it turns into a bend.

    • distance — a fixed distance down the road. Predictable, and blind to what the road does.
    • points — a number of the route's own vertices. The line is denser through bends, so the aim shortens exactly where the road is turning.
    • instruction — the next guidance instruction, so the camera looks at the junction it is heading for. Needs a route asked for with guidance; without instructions it aims by distance.