Skip to content

Commit

Permalink
Basic shower layer
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinLinde committed Jun 20, 2023
1 parent 238de89 commit 932712e
Show file tree
Hide file tree
Showing 4 changed files with 237 additions and 1 deletion.
12 changes: 12 additions & 0 deletions assets/layers/shower/license_info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
{
"path": "shower.svg",
"license": "CC0",
"authors": [
"James"
],
"sources": [
"https://github.com/gravitystorm/openstreetmap-carto/blob/master/symbols/amenity/shower.svg"
]
}
]
136 changes: 136 additions & 0 deletions assets/layers/shower/shower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
{
"id": "shower",
"name": {
"en": "Shower"
},
"minzoom": 12,
"source": {
"osmTags": "amenity=shower"
},
"title": {
"render": {
"en": "Shower"
}
},
"presets": [],
"tagRenderings": [
"images",
"level",
{
"id": "access",
"question": {
"en": "Who can use this shower?"
},
"mappings": [
{
"if": "access=yes",
"then": {
"en": "Anyone can use this shower"
}
},
{
"if": "access=customers",
"then": {
"en": "Only customers can use this shower"
}
},
{
"if": "access=key",
"then": {
"en": "Accesible, but one has to ask for a key"
}
}
]
},
{
"id": "fee",
"question": {
"en": "Is there a fee for using this shower?"
},
"mappings": [
{
"if": "fee=yes",
"then": {
"en": "There is a fee for using this shower"
}
},
{
"if": "fee=no",
"then": {
"en": "This shower is free to use"
}
}
]
},
{
"id": "charge",
"condition": "fee=yes",
"question": {
"en": "How much does it cost to use this shower?"
},
"freeform": {
"key": "charge",
"type": "string",
"placeholder": {
"en": "e.g. 1€"
}
},
"render": {
"en": "It costs {charge} to use this shower"
}
},
"opening_hours",
{
"id": "hot_water",
"question": {
"en": "Does this shower have hot water available?"
},
"mappings": [
{
"if": "hot_water=yes",
"then": {
"en": "Hot water is available here"
}
},
{
"if": "hot_water=fee",
"then": {
"en": "Hot water is available here, but there is a fee"
}
},
{
"if": "hot_water=no",
"then": {
"en": "There is no hot water available here"
}
}
]
}
],
"filter": [],
"deletion": {
"softDeletionTags": {
"and": [
"disused:amenity={amenity}",
"amenity="
]
},
"neededChangesets": 1
},
"allowMove": {
"enableImproveAccuracy": true,
"enableRelocation": false
},
"mapRendering": [
{
"icon": "circle:white;./assets/layers/shower/shower.svg",
"location": [
"point",
"centroid"
]
}
],
"description": {
"en": "A layer showing (public) showers"
}
}
87 changes: 87 additions & 0 deletions assets/layers/shower/shower.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion assets/themes/toilets/toilets.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"icon": "./assets/themes/toilets/toilets.svg",
"layers": [
"toilet",
"toilet_at_amenity"
"toilet_at_amenity",
"shower"
]
}

0 comments on commit 932712e

Please sign in to comment.