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 TerrainModuleConfig

    TerrainModuleConfig: MapModuleCommonConfig & {
        elevation?: TerrainElevationConfig;
        hillshade?: TerrainHillshadeConfig;
    }

    Configuration of the TerrainModule: the two ways it draws the relief of the style's elevation data.

    Type Declaration

    Unset, the hillshade is hidden like the other style parts the SDK adds (traffic flow and incidents), and the surface is left as the map draws it: flat on TomTom styles. So resetConfig() returns a TomTom style to flat and unshaded.

    const config: TerrainModuleConfig = {
    hillshade: { visible: true, method: 'multidirectional', shadowColor: '#3b2f2f' },
    elevation: { visible: true, exaggeration: 1.5 },
    };