set terrain on style load if needed

This commit is contained in:
vcoppe
2024-05-17 13:10:20 +02:00
parent 51213faa7e
commit e916d5b102

View File

@@ -81,7 +81,7 @@
});
newMap.setTerrain({
source: 'mapbox-dem',
exaggeration: 0
exaggeration: newMap.getPitch() > 0 ? 1 : 0
});
newMap.setFog({
color: 'rgb(186, 210, 235)',