mapcomplete/assets/layers/rainbow_crossings/rainbow_crossings.json

93 lines
2 KiB
JSON
Raw Normal View History

2022-07-11 20:48:19 +02:00
{
"id": "rainbow_crossings",
"name": {
"en": "Crossings with rainbow paintings"
},
"description": {
2022-07-12 10:23:45 +02:00
"en": "A layer showing pedestrian crossings with rainbow paintings"
2022-07-11 20:48:19 +02:00
},
"source": {
2022-07-12 10:23:45 +02:00
"osmTags":
2022-07-11 20:48:19 +02:00
"highway=crossing"
},
"minzoom": 17,
"title": {
"render": {
"en": "Crossing"
}
},
"presets": [
{
"title": {
"en": "a crossing"
},
"tags": [
"highway=crossing"
],
"description": {
"en": "Pedestrian crossing"
},
"preciseInput": {
"preferredBackground": [
"photo"
],
"snapToLayer": "cycleways_and_roads",
"maxSnapDistance": 25
}
2022-07-12 10:23:45 +02:00
}
],
2022-07-11 20:48:19 +02:00
"tagRenderings": [
2022-07-12 10:23:45 +02:00
"images",
{
2022-07-11 20:48:19 +02:00
"id": "crossing-with-rainbow",
"question": {
"en": "Does this crossing has rainbow paintings?"
},
"condition": "highway=crossing",
"mappings": [
{
"if": "crossing:marking=rainbow",
"then": {
"en": "This crossing has rainbow paintings"
2022-07-12 10:23:45 +02:00
},
"icon": {
"path": "./assets/themes/rainbow_crossings/logo.svg",
"class": "medium"
2022-07-11 20:48:19 +02:00
}
},
2022-07-12 10:23:45 +02:00
{
"if": "not:crossing:marking=rainbow",
"then": {
"en": "No rainbow paintings here"
},
"icon": "./assets/themes/rainbow_crossings/crossing.svg"
},
2022-07-11 20:48:19 +02:00
{
"if": "crossing:marking!=rainbow",
"then": {
"en": "No rainbow paintings here"
2022-07-12 10:23:45 +02:00
},
"icon": "./assets/themes/rainbow_crossings/crossing.svg",
"hideInAnswer": true
2022-07-11 20:48:19 +02:00
}
]
}
],
"mapRendering": [
{
"icon": {
2022-07-12 10:23:45 +02:00
"render": "./assets/themes/rainbow_crossings/crossing.svg",
"mappings": [{
"if": "crossing:marking=rainbow",
"then": "./assets/themes/rainbow_crossings/logo.svg"
}]
2022-07-11 20:48:19 +02:00
},
2022-07-12 10:23:45 +02:00
"iconSize": "40,40,center",
2022-07-11 20:48:19 +02:00
"location": [
"point",
"centroid"
]
}
2022-07-12 10:23:45 +02:00
]
2022-07-11 20:48:19 +02:00
}