Skip to content

Commit

Permalink
update terrain-test page to maxPitch = 85
Browse files Browse the repository at this point in the history
  • Loading branch information
prozessor13 committed Feb 21, 2022
1 parent a2246ba commit 0aea4c6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions debug/terrain.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,17 @@
center: [11.40416, 47.26475],
hash: true,
style: 'https://static.maptoolkit.net/styles/toursprung/terrain.json',
maxZoom: 16
maxZoom: 18,
maxPitch: 85
});

map.on('load', () => {
map.addSource('terrain', {
'type': 'raster-dem',
'tiles': ['https://vtc-cdn.maptoolkit.net/terrainrgb/{z}/{x}/{y}.webp'],
'encoding': 'mapbox',
'maxzoom': 14
'maxzoom': 14,
'minzoom': 4
});
map.addTerrain('terrain', {exaggeration: 0.33});
});
Expand Down

0 comments on commit 0aea4c6

Please sign in to comment.