Configuration of the TerrainModule: the two ways it draws the relief of the style's elevation data.
Optional
The 3D surface.
The hillshade shading.
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.
resetConfig()
const config: TerrainModuleConfig = { hillshade: { visible: true, method: 'multidirectional', shadowColor: '#3b2f2f' }, elevation: { visible: true, exaggeration: 1.5 },}; Copy
const config: TerrainModuleConfig = { hillshade: { visible: true, method: 'multidirectional', shadowColor: '#3b2f2f' }, elevation: { visible: true, exaggeration: 1.5 },};
Configuration of the TerrainModule: the two ways it draws the relief of the style's elevation data.