This is the documentation of version 0.64.0. Go to the latest version, 1.0.0.
TomTom Maps for JavaScript
    Preparing search index...

    Type Alias TerrainElevationConfig

    The 3D surface of the TerrainModule, raised to the elevation data. Shows best with a pitched camera.

    type TerrainElevationConfig = {
        exaggeration?: number;
        visible?: boolean;
    }
    Index
    exaggeration?: number

    Vertical scaling of the surface: 1 is true elevation, higher values emphasise the relief. Kept while visible is off, so turning it back on restores it.

    hillshade.exaggeration is a different thing: how strongly the slopes are shaded, raising nothing.

    1
    
    visible?: boolean

    Raises the map surface in 3D, or flattens it.

    The map's own terrain, if its style or MapLibre code raised one; none on TomTom styles.