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

    Type Alias FlyoverZoom

    FlyoverZoom:
        | { mode: "fixed"; zoom: number }
        | { instructionsAhead: number; mode: "instructions" }
        | { mode: "speed" }

    How high the camera rides. Whatever the mode, it pulls back further where terrain would otherwise come between the camera and the road.

    • fixed — one MapLibre zoom, whatever the road does.
    • instructions — framed on the junctions ahead: the zoom that fits the next N instructions (one at least) in the view, so a run of hairpins pulls back and a straight closes in.
    • speed — tied to the ground speed, the way a driver's eyes lift with it.