forked from MapComplete/MapComplete
add hut.json
This commit is contained in:
parent
38191309ca
commit
55632b738b
1 changed files with 160 additions and 0 deletions
160
assets/layers/hut/hut.json
Normal file
160
assets/layers/hut/hut.json
Normal file
|
@ -0,0 +1,160 @@
|
|||
{
|
||||
"id": "hut",
|
||||
"name": {
|
||||
"en": "Huts"
|
||||
},
|
||||
"description": {
|
||||
"en": "Layer showing basic huts, wilderness huts and alpine huts"
|
||||
},
|
||||
"source": {
|
||||
"osmTags": {
|
||||
"or": [
|
||||
"tourism=wilderness_hut",
|
||||
"tourism=alpine_hut",
|
||||
{
|
||||
"and": [
|
||||
"amenity=shelter",
|
||||
"shelter_type=basic_hut"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"minzoom": 10,
|
||||
"title": {
|
||||
"render": "Hut",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "name~*",
|
||||
"then": "{name}"
|
||||
},
|
||||
{
|
||||
"if": "tourism=wilderness_hut",
|
||||
"then": "wilderness hut"
|
||||
},
|
||||
{
|
||||
"if": "tourism=alpine_hut",
|
||||
"then": "alpine hut"
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"amenity=shelter",
|
||||
"shelter_type=basic_hut"
|
||||
]
|
||||
},
|
||||
"then": "basic hut"
|
||||
}
|
||||
]
|
||||
},
|
||||
"pointRendering": [
|
||||
{
|
||||
"location": [
|
||||
"point",
|
||||
"centroid"
|
||||
],
|
||||
"marker": [
|
||||
{
|
||||
"icon": {
|
||||
"render": "./assets/layers/shelter/shelter.svg",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "tourism=wilderness_hut",
|
||||
"then": "https://wiki.openstreetmap.org/w/images/8/8e/Wilderness_hut.svg"
|
||||
},
|
||||
{
|
||||
"if": "tourism=alpine_hut",
|
||||
"then": "https://wiki.openstreetmap.org/w/images/f/f1/Alpinehut.svg"
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"amenity=shelter",
|
||||
"shelter_type=basic_hut"
|
||||
]
|
||||
},
|
||||
"then": "./assets/layers/shelter/shelter.svg"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"lineRendering": [],
|
||||
"presets": [
|
||||
{
|
||||
"tags": [
|
||||
"tourism=wilderness_hut"
|
||||
],
|
||||
"title": {
|
||||
"en": "wilderness hut"
|
||||
},
|
||||
"description": {
|
||||
"en": "An unserviced fully enclosed hut (with roof and walls) with beds or suitable sleeping areas and a fireplace or stove for heating and cooking."
|
||||
}
|
||||
},
|
||||
{
|
||||
"tags": [
|
||||
"tourism=alpine_hut"
|
||||
],
|
||||
"title": {
|
||||
"en": "alpine hut"
|
||||
},
|
||||
"description": {
|
||||
"en": "A serviced remote building located in the mountains intended to provide board and lodging."
|
||||
}
|
||||
},
|
||||
{
|
||||
"tags": [
|
||||
"amenity=shelter",
|
||||
"shelter_type=basic_hut"
|
||||
],
|
||||
"title": {
|
||||
"en": "basic hut"
|
||||
},
|
||||
"description": {
|
||||
"en": "An unserviced fully enclosed hut (with roof and walls) with beds or suitable sleeping areas <b>without</b> a fireplace or stove."
|
||||
}
|
||||
}
|
||||
],
|
||||
"tagRenderings": [
|
||||
"images",
|
||||
"name",
|
||||
"reservation",
|
||||
"caravansites.caravansites-fee",
|
||||
{
|
||||
"id": "drinking_water",
|
||||
"question": {
|
||||
"en": "Is drinking water available here?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "drinking_water=yes",
|
||||
"then": {
|
||||
"en": "Here is drinking water available."
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "drinking_water=no",
|
||||
"then": {
|
||||
"en": "Here is no drinking water available."
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"has_toilets",
|
||||
"description",
|
||||
{
|
||||
"id": "preset_type",
|
||||
"render": "{preset_type_select()}"
|
||||
}
|
||||
],
|
||||
"filter":[
|
||||
"free"
|
||||
],
|
||||
"allowMove": {
|
||||
"enableRelocation": false,
|
||||
"enableImproveAccuracy": true
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue