-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathearth.yaml
32 lines (30 loc) · 913 Bytes
/
earth.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
layers:
earth:
data: { source: mapzen }
draw:
polygons:
order: global.order
color: [0.267,0.365,0.502]
early:
filter: { $zoom: { max: 7 } }
draw:
polygons:
style: earth-early
later:
filter: { $zoom: { min: 7 } }
draw:
polygons:
style: polygons
color: [[7,[0.242,0.332,0.456]],[8,[0.212,0.302,0.431]]]
styles:
earth-early:
base: polygons
mix: [functions-zoom, polygons-diagonal-opaque-stripes]
shaders:
defines:
ZOOM_START: 0.
ZOOM_END: 6.5
ZOOM_MAX: 6.
STRIPES_ALPHA: 1.
STRIPES_SCALE: mix(25.,50.,smoothstep(0.,1.,1.-zoom()))
STRIPES_WIDTH: 1.-zoom()-.2