The TerrainModule configuration, for the two ways it draws the relief of the style's elevation data.
Optional
The 3D surface.
The hillshade shading.
By default, the hillshade is hidden like the other style parts the SDK adds (traffic flow and incidents), and the surface stays flat, as the map draws it. So resetConfig() returns the map to flat and unshaded.
resetConfig()
const config: TerrainModuleConfig = { hillshade: { visible: true, method: 'multidirectional', colors: { shaded: '#3b2f2f' } }, elevation: { visible: true, exaggeration: 1.5 },}; Copy
const config: TerrainModuleConfig = { hillshade: { visible: true, method: 'multidirectional', colors: { shaded: '#3b2f2f' } }, elevation: { visible: true, exaggeration: 1.5 },};
The TerrainModule configuration, for the two ways it draws the relief of the style's elevation data.