MapComplete/assets/layers/campsite/campsite.json
2025-02-03 15:06:08 +01:00

258 lines
5.2 KiB
JSON

{
"id": "campsite",
"name": {
"en": "Campsites",
"de": "Zeltplätze"
},
"description": {
"en": "Campsites",
"de": "Zeltplätze"
},
"source": {
"osmTags": {
"and": [
"tourism=camp_site"
]
}
},
"minzoom": 7,
"shownByDefault": true,
"title": {
"render": {
"en": "{name}"
}
},
"pointRendering": [
{
"location": [
"point",
"centroid"
],
"marker": [
{
"icon": {
"render": "./assets/layers/campsite/campsite.svg"
}
}
]
}
],
"lineRendering": [
{
"width": 1,
"color": "blue"
}
],
"presets": [
{
"title": {
"en": "campsite"
},
"tags": [
"tourism=camp_site"
]
},
{
"title": {
"en": "campsite for groups"
},
"tags": [
"tourism=camp_site",
"group_only=yes"
]
}
],
"tagRenderings": [
{
"question": {
"de": "Ist dieser Zeltplatz ausschließlich für Gruppen?",
"en": "Is this campsite exclusively for groups?"
},
"mappings": [
{
"if": {
"and": [
"group_only=yes"
]
},
"then": {
"en": "This campsite is exclusively for groups",
"de": "Dieser Zeltplatz ist ausschließlich für Gruppen"
}
},
{
"if": {
"and": [
"group_only=no"
]
},
"then": {
"en": "This campsite is not exclusively for groups",
"de": "Dieser Zeltplatz ist nicht ausschließlich für Gruppen"
}
}
],
"id": "group_only"
},
{
"question": {
"en": "What is the name of this campsite?",
"de": "Wie heißt dieser Zeltplatz?"
},
"render": {
"en": "The name of this campsite is {name}",
"de": "Dieser Zeltplatz heißt {name}"
},
"freeform": {
"key": "name"
},
"id": "name"
},
{
"id": "fee",
"question": {
"en": "Is a fee charged here?",
"de": "Wird hier eine Gebühr erhoben?"
},
"render": {
"en": "A fee of {charge} should be paid for here",
"de": "Hier wird eine Gebühr von {charge} erhoben"
},
"freeform": {
"key": "charge",
"type": "currency",
"addExtraTags": [
"fee=yes"
],
"inline": true
},
"mappings": [
{
"if": "fee=no",
"addExtraTags": [
"charge="
],
"then": {
"en": "The campsite is free of charge",
"de": "Der Zeltplatz ist kostenlos"
}
},
{
"if": {
"and": [
"fee=yes",
"charge="
]
},
"then": {
"en": "A fee is charged here.",
"de": "Hier wird eine Gebühr erhoben."
},
"hideInAnswer": "charge~*"
}
]
},
{
"question": {
"de": "Wie viele Personen können hier übernachten?",
"en": "How many people can stay here?"
},
"render": {
"en": "{capacity:persons} people can stay here",
"de": "Hier können {capacity:persons} Personen übernachten"
},
"freeform": {
"key": "capacity:persons",
"type": "pnat"
},
"id": "capacity_persons"
},
"contact",
"questions",
"mastodon",
"images"
],
"filter": [
{
"id": "capacity_persons_filter",
"options": [
{
"question": {
"en": "persons",
"de": "Personen"
}
},
{
"question": {
"en": "1-20"
},
"osmTags": {
"and": [
"capacity:persons>=1",
"capacity:persons<=20"
]
}
},
{
"question": {
"en": "21-50"
},
"osmTags": {
"and": [
"capacity:persons>=21",
"capacity:persons<=50"
]
}
},
{
"question": {
"en": "51-100"
},
"osmTags": {
"and": [
"capacity:persons>=51",
"capacity:persons<=100"
]
}
},
{
"question": {
"en": "101-200"
},
"osmTags": {
"and": [
"capacity:persons>=101",
"capacity:persons<=200"
]
}
},
{
"question": {
"en": "201-500"
},
"osmTags": {
"and": [
"capacity:persons>=201",
"capacity:persons<=500"
]
}
},
{
"question": {
"en": "500+"
},
"osmTags": "capacity:persons>=501"
},
{
"question": {
"en": "?"
},
"osmTags": "capacity:persons="
}
]
}
],
"allowMove": false,
"credits": "Osmwithspace",
"credits:uid": 8770388
}