Skip to content

Commit a01f510

Browse files
committed
Import raster-terrain & modified source use offset
- raster-terrain-offset imports raster-terrain.yaml and modifies the terrain source to offset the tiles by 1
1 parent 09325ee commit a01f510

File tree

1 file changed

+3
-31
lines changed

1 file changed

+3
-31
lines changed

scenes/raster-terrain-offset.yaml

+3-31
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,5 @@
1-
global:
2-
sdk_api_key: ''
3-
sdk_landcover_api_key: ''
1+
import: raster-terrain.yaml
42

53
sources:
6-
nextzen:
7-
type: MVT
8-
url: https://tile.nextzen.org/tilezen/vector/v1/256/all/{z}/{x}/{y}.mvt
9-
url_params:
10-
api_key: global.sdk_api_key
11-
rasters: ['terrain']
12-
terrain:
13-
type: Raster
14-
url: https://d3gy1yxv8mxm7h.cloudfront.net/tilezen/landcover/v1/512/all/{z}/{x}/{y}.png
15-
url_params:
16-
api_key: global.sdk_landcover_api_key
17-
zoom_offset: 1
18-
19-
styles:
20-
raster-test:
21-
base: raster
22-
shaders:
23-
blocks:
24-
color:
25-
"color.rgba = sampleRasterAtPixel(0, vec2(currentRasterPixel(0)));"
26-
27-
layers:
28-
earth:
29-
data: { source: nextzen }
30-
draw:
31-
raster-test:
32-
order: 1
33-
color: white
4+
terrain-normals:
5+
zoom_offset: 1

0 commit comments

Comments
 (0)