Skip to content

Commit

Permalink
Increase hillshade source from 12 to 13.
Browse files Browse the repository at this point in the history
It still avoids strong artifacts and maplibre-gl 4 is using much less
memory.

Reduce maximum hillshade-exaggeration from 1 to 0.5.
The default is 0.5; going higher throws away contrast.
  • Loading branch information
jleedev committed Sep 19, 2024
1 parent 6eeca39 commit 0f98db3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/js/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function build(tileURL, spriteURL, glyphURL, locales) {
encoding: "terrarium",
tileSize: 256,
// The actual maxzoom is 15
maxzoom: 12,
maxzoom: 13,
},
},
sprite: spriteURL,
Expand Down
9 changes: 2 additions & 7 deletions src/layer/hillshade.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,15 @@ export const hillshading = {
id: "hillshading",
type: "hillshade",
source: "dem",
maxzoom: 17,
paint: {
"hillshade-exaggeration": [
"interpolate",
["linear"],
["zoom"],
6,
1,
12,
0.7,
16,
0.1,
0.5,
17,
0,
0.1,
],
"hillshade-shadow-color": "hsla(30, 14%, 76%, 1)",
"hillshade-highlight-color": "hsla(30, 44%, 99%, 1)",
Expand Down

0 comments on commit 0f98db3

Please sign in to comment.