set terrain on style load if needed
This commit is contained in:
parent
51213faa7e
commit
e916d5b102
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@
|
||||||
});
|
});
|
||||||
newMap.setTerrain({
|
newMap.setTerrain({
|
||||||
source: 'mapbox-dem',
|
source: 'mapbox-dem',
|
||||||
exaggeration: 0
|
exaggeration: newMap.getPitch() > 0 ? 1 : 0
|
||||||
});
|
});
|
||||||
newMap.setFog({
|
newMap.setFog({
|
||||||
color: 'rgb(186, 210, 235)',
|
color: 'rgb(186, 210, 235)',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue