Lazy load Maplibre GL JS and add hillshading layer
This commit is contained in:
parent
f92d2e2227
commit
13efb4864c
11 changed files with 314 additions and 15 deletions
21
layers/mvt/terrarium-hillshading-style.json
Normal file
21
layers/mvt/terrarium-hillshading-style.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"version": 8,
|
||||
"sources": {
|
||||
"dem": {
|
||||
"type": "raster-dem",
|
||||
"tiles": [
|
||||
"https://s3.amazonaws.com/elevation-tiles-prod/terrarium/{z}/{x}/{y}.png"
|
||||
],
|
||||
"encoding": "terrarium",
|
||||
"tileSize": 256,
|
||||
"maxzoom": 15
|
||||
}
|
||||
},
|
||||
"layers": [
|
||||
{
|
||||
"id": "hillshading",
|
||||
"source": "dem",
|
||||
"type": "hillshade"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue