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

    Type Alias FlyoverCamera

    How the camera flies.

    type FlyoverCamera = {
        aim: FlyoverAim;
        anchor?: FlyoverAnchor;
        pitch: number;
        speedKMH: number;
        zoom: FlyoverZoom;
    }
    Index

    What the camera aims at down the route.

    { mode: 'instruction', fallbackMetersAhead: 250 }

    anchor?: FlyoverAnchor

    Where the followed position sits on screen. Omitted, it follows the pitch — see anchorForPitch.

    pitch: number

    Camera tilt, in degrees; the map's maxPitch is the ceiling.

    70
    
    speedKMH: number

    Ground speed of the camera, in kilometres per hour.

    200
    

    What sets the camera's height.

    { mode: 'instructions', instructionsAhead: 2 }