Skip to content

Commit

Permalink
made sure that showers have an icon
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Sep 29, 2024
1 parent 198515a commit 8c256ee
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dist/*",
"src/"
],
"version": "0.0.20",
"version": "0.0.21",
"scripts": {
"test": "jest .",
"lint": "eslint src --fix && tsc --noEmit && prettier --write .",
Expand Down
23 changes: 20 additions & 3 deletions src/style/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,18 @@ export const defaultLayers: Array<LayerSpecification> = [
type: "line",
},
{
filter: ["==", ["get", "indoor"], "room"],
filter: [
"all",
[
"!",
[
"in",
["get", "amenity"],
["literal", ["toilet", "toilets", "shower", "showers"]],
],
],
["==", ["get", "indoor"], "room"],
],
id: "poi-indoor-text-ref",
layout: {
"text-allow-overlap": false,
Expand Down Expand Up @@ -749,13 +760,19 @@ export const defaultLayers: Array<LayerSpecification> = [
type: "symbol",
},
{
filter: ["==", ["get", "amenity"], "toilets"],
id: "poi-indoor-toilet",
filter: [
"in",
["get", "amenity"],
["literal", ["toilets", "shower", "showers"]],
],
id: "poi-indoor-bathrooms",
layout: {
"icon-allow-overlap": true,
"icon-anchor": "center",
"icon-image": [
"case",
["in", ["get", "amenity"], ["literal", ["shower", "showers"]]],
["literal", "noun-shower-51"],
["==", ["get", "wheelchair"], "yes"],
["literal", "wheelchair"],
[
Expand Down

0 comments on commit 8c256ee

Please sign in to comment.