mapcomplete/assets/layers/dogpark/dogpark.json
2022-06-01 20:21:16 +02:00

170 lines
No EOL
4.9 KiB
JSON

{
"id": "dogpark",
"description": "A layer showing dogparks, which are areas where dog are allowed to run without a leash",
"source": {
"osmTags": {
"or": [
"leisure=dog_park",
{
"and": [
"leisure=park",
"dog=unleashed"
]
}
]
}
},
"minzoom": 10,
"presets": [
{
"title": {
"en": "a dog park",
"da": "en hundeskov",
"de": "Ein Hundepark",
"es": "un parque para perros"
},
"tags": [
"leisure=dog_park"
],
"description": {
"en": "A place for dogs, where they can run unleashed",
"da": "En hundeskov eller hundegård beregnet til hunde, hvor de kan løbe uden snor",
"de": "Ein Ort ohne Leinenzwang für Hunde",
"es": "Un lugar para perros, donde pueden correr sin correa"
}
}
],
"name": {
"en": "dog parks",
"da": "hundeskove",
"de": "Hundeparks",
"es": "parques de perros"
},
"title": {
"render": {
"en": "dog park",
"da": "hundeskov",
"de": "Hundepark",
"es": "parque para perros"
},
"mappings": [
{
"if": "name~*",
"then": {
"*": "{name}"
}
}
]
},
"mapRendering": [
{
"location": [
"point",
"centroid"
],
"icon": "./assets/layers/dogpark/dog-park.svg",
"iconSize": "40,40,center",
"label": {
"mappings": [
{
"if": "name~*",
"then": "<div style='background: white; padding: 0.25em; border-radius:0.5em'>{name}</div>"
}
]
}
},
{
"color": "#ff0",
"width": 5
}
],
"tagRenderings": [
{
"id": "dogpark-fenced",
"mappings": [
{
"if": "barrier=fence",
"then": {
"en": "This dogpark is fenced all around",
"da": "Denne hundskov er indhegnet",
"de": "Dieser Hundepark ist komplett umzäunt",
"es": "Este parque para perros está cerrado todo alrededor"
}
},
{
"if": "barrier=no",
"then": {
"en": "This dogpark is not fenced all around",
"da": "Denne hundskov er ikke indhegnet",
"de": "Dieser Hundepark ist nicht komplett umzäunt",
"es": "Este parque para perros no está cerrado todo alrededor"
}
}
],
"question": {
"en": "It this dog park fenced in?",
"da": "Er denne hundeskov indhegnet?",
"de": "Ist dieser Hundepark umzäunt?",
"es": "¿Este parque para perros está vallado?"
}
},
{
"id": "smalldogs",
"mappings": [
{
"if": "small_dog=separate",
"then": {
"en": "Have separate area for puppies and small dogs",
"da": "Har en indhegning til hvalpe og sm&aring; hunde",
"de": "Hat einen separaten Bereich für Hundewelpen und kleine Hunde",
"es": "Tiene un espacio separado para cachorros y perros pequeños"
}
},
{
"if": "small_dog=shared",
"then": {
"en": "Does <strong>not</strong> have a separate area for puppies and small dogs",
"da": "Har <strong>ikke</strong> en indhegning til hvalpe og sm&aring; hunde",
"de": "Hat <strong>keinen</strong> separaten Bereich für Hundewelpen und kleine Hunde",
"es": "<strong>No</strong> tiene un espacio separado para cachorros y perros pequeños"
}
}
],
"question": {
"en": "Does this dog park have a separate fenced in area for small dogs and puppies?",
"da": "Har denne hundeskov et separat indhegnet omr&aring;de for sm&aring; hunde og hvalpe (hvalpeg&aring;rd)?",
"de": "Hat der Hundepark einen separaten Bereich für Hundewelpen und kleine Hunde?",
"es": "¿Este parque para perros tiene una zona separada vallada para perros pequeños y cachorros?"
}
},
{
"question": {
"en": "What is the name of this dog park?",
"da": "Hvad hedder denne hundeskov?",
"de": "Wie lautet der Name dieses Hundeparks?",
"es": "¿Cual es el nombre de este parque para perros?"
},
"render": {
"en": "The name of this dog park is {name}",
"de": "Denne hundeskov hedder {name}",
"es": "El nombre de este parque para perros es {name}"
},
"freeform": {
"key": "name"
},
"id": "Name"
},
{
"id": "dogarea",
"render": {
"en": "This dogpark is {_surface:ha} ha big",
"da": "Denne hundeskov er på {_surface:ha} hektar",
"de": "Der Hundepark ist {_surface:ha} ha groß",
"es": "Este parque para perros tiene {_surface:ha} ha"
},
"condition": "_surface:ha!=0"
},
"reviews",
"images"
]
}