-
Notifications
You must be signed in to change notification settings - Fork 0
/
contours.json
81 lines (81 loc) · 2.03 KB
/
contours.json
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
"version": 8,
"name": "Contours",
"bearing": 0,
"pitch": 0,
"sources": {
"contours": {
"type": "vector",
"attribution": "<a href=\"https://github.com/feludwig/pgsql-omt-schema/demo\">© stylesheet: @feludwig</a> <a href=\"https://www2.jpl.nasa.gov/srtm/\">© SRTM data from USGS, NASA</a>",
"tiles":[
"https://feludwig.github.io/pgsql-omt-schema/demo/tiles/contours/{z}/{x}/{y}.pbf"
],
"minzoom":9,
"maxzoom":15,
"overzoom":1
}
},
"layers": [
{
"id": "contours200",
"maxzoom":10,
"type": "line",
"source": "contours",
"source-layer": "heights",
"filter" : ["==",["%",["get","height"],200],0],
"layout": {"line-cap": "round", "visibility": "visible"},
"paint": {
"line-color": "#9cb197",
"line-width": 0.7
}
},
{
"id": "contours100",
"minzoom":10,
"type": "line",
"source": "contours",
"source-layer": "heights",
"filter" : ["==",["%",["get","height"],100],0],
"layout": {"line-cap": "round", "visibility": "visible"},
"paint": {
"line-color": [
"step", ["zoom"],
"#9cb197",
11, "#747b90",
14, "#855d62"
],
"line-width": 0.7
}
},
{
"id": "contours50",
"minzoom":11,
"type": "line",
"source": "contours",
"source-layer": "heights",
"filter" : ["==",["%",["get","height"],50],0],
"layout": {"line-cap": "round", "visibility": "visible"},
"paint": {
"line-color": [
"step", ["zoom"],
"#9cb197",
14, "#747b90"
],
"line-width": 0.6
}
},
{
"id": "contours10",
"minzoom":14,
"type": "line",
"source": "contours",
"source-layer": "heights",
"filter" : ["==",["%",["get","height"],10],0],
"layout": {"line-cap": "round", "visibility": "visible"},
"paint": {
"line-color": "#9cb197",
"line-width": 0.5
}
}
]
}