Skip to content

Commit

Permalink
Update colors for areas (private/room/ground)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joxit authored and francois2metz committed Jul 27, 2020
1 parent e40c734 commit 3bc480b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,17 @@ export const layers = [
]
],
paint: {
"fill-color": "white"
"fill-color": [
"case",
// if private
["all", ["has", "access"], ["in", ["get", "access"], ["literal", ["no", "private"]]]],
"#F2F1F0",
// if POI
["all", ["has", "is_poi"], ["==", ["get", "is_poi"], true]],
"#D4EDFF",
// default
"#fdfcfa"
]
}
},
{
Expand Down

0 comments on commit 3bc480b

Please sign in to comment.