Skip to content
Snippets Groups Projects
Commit 43e5214e authored by Laurens Oostwegel's avatar Laurens Oostwegel
Browse files

Add layer on-off switch

parent ea9469db
Branches
Tags
No related merge requests found
......@@ -31,13 +31,20 @@
"maxzoom": 22
},
{
"id": "obm_tiles",
"id": "completeness",
"type": "fill",
"source": "obm_tiles",
"source-layer": "obm_tiles",
"layout": {"visibility": "visible"},
"layout": {"visibility": "none"},
"paint": {
"fill-opacity": 0.2,
"fill-opacity": 0.8,
"fill-color": [
"match",
["get", "completeness"],
0, "red",
1, "green",
"grey"
],
"fill-outline-color": [
"match",
["get", "completeness"],
......@@ -48,7 +55,57 @@
}
},
{
"id": "obm_buildings",
"id": "exposure",
"type": "fill",
"source": "obm_tiles",
"source-layer": "exposure",
"layout": {"visibility": "none"},
"paint": {
"fill-opacity": 0.8,
"fill-color": [
"interpolate",
["linear"],
["get", "sum_number"],
0, "#232323",
1, "#2f1739",
2, "#821e5a",
3, "#bf1654",
4, "#dc2b46",
5, "#ed503e",
7, "#f37852",
9, "#f6ad85",
13, "#f9ddc8",
19, "#faebdd"
]
}
},
{
"id": "exposure-reference",
"type": "fill",
"source": "obm_tiles",
"source-layer": "exposure_reference",
"layout": {"visibility": "none"},
"paint": {
"fill-opacity": 0.8,
"fill-color": [
"interpolate",
["linear"],
["get", "number"],
0, "#232323",
1, "#2f1739",
2, "#821e5a",
3, "#bf1654",
4, "#dc2b46",
5, "#ed503e",
7, "#f37852",
9, "#f6ad85",
13, "#f9ddc8",
19, "#faebdd"
]
}
},
{
"id": "occupancy",
"type": "fill",
"source": "obm_buildings",
"source-layer": "obm_buildings",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment