forked from HarelM/IHMCustomLayerTemplate
-
Notifications
You must be signed in to change notification settings - Fork 2
/
style.json
49 lines (49 loc) · 1.29 KB
/
style.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
{
"version": 8,
"name": "Floods",
"metadata": {"maputnik:renderer": "mbgljs", "openmaptiles:version": "3.x"},
"sources": {
"waterholes": {
"type": "geojson",
"data": "https://raw.githubusercontent.com/amiad/IHMGeoJSONWaterholes/main/source.geojson"
}
},
"glyphs": "https://israelhikingmap.osm.org.il/fonts/{fontstack}/{range}.pbf",
"layers": [
{
"id": "waterhole-info",
"type": "symbol",
"metadata": {"IHM:overlay": true},
"source": "waterholes",
"minzoom": 13,
"filter": ["all", ["!=", "status", ""]],
"layout": {
"text-field": [
"concat",
["match", ["get", "name"], "", "", ["concat", ["get", "name"], ": "]],
["get", "status"],
[
"match",
["get", "date"],
"",
"",
["concat", " (", ["get", "date"], ")"]
]
],
"symbol-placement": "point",
"text-font": ["Open Sans Cond Bold"],
"text-size": 18,
"text-letter-spacing": 0.2,
"text-anchor": "top"
},
"paint": {
"text-color": "#125595",
"text-halo-color": "white",
"text-halo-width": 1.5,
"text-halo-blur": 1,
"text-translate": [0, 6]
}
}
],
"id": "floods"
}