forked from HarelM/IHMCustomLayerTemplate
-
Notifications
You must be signed in to change notification settings - Fork 2
/
style.json
50 lines (50 loc) · 1.3 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
50
{
"version": 8,
"name": "Floods",
"metadata": {
"maputnik:license": "https://github.com/maputnik/osm-liberty/blob/gh-pages/LICENSE.md",
"maputnik:renderer": "mbgljs",
"openmaptiles:version": "3.x"
},
"sources": {
"waterholes": {
"type": "geojson",
"data": "https://raw.githubusercontent.com/amiad/IHMGeoJSONWaterholes/main/source.geojson"
}
},
"sprite": "https://maputnik.github.io/osm-liberty/sprites/osm-liberty",
"glyphs": "https://orangemug.github.io/font-glyphs/glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "waterhole-info",
"type": "symbol",
"metadata": {"IHM:overlay": true},
"source": "waterholes",
"minzoom": 13,
"layout": {
"text-field": [
"concat",
["get", "Title"],
": ",
["get", "Description"],
" (",
["get", "LastModified"],
")"
],
"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"
}