mapcomplete/assets/layers/direction/direction.json

44 lines
1 KiB
JSON
Raw Normal View History

2020-11-17 01:22:48 +00:00
{
"id": "direction",
"name": {
"en": "Direction visualization"
},
"minzoom": 16,
"overpassTags": {
"or": [
"camera:direction~*",
"direction~*"
]
2020-11-17 01:22:48 +00:00
},
"doNotDownload": true,
"passAllFeatures": true,
"title": null,
"description": {
"en": "This layer visualizes directions"
},
"tagRenderings": [],
"icon": {
"render": "direction_gradient:var(--catch-detail-color)",
"#": "For some weird reason, showing the icon in the layer control panel breaks the svg-gradient (because the svg gradient has a global color or smthng) - so we use a different icon without gradient",
"mappings": [
{
"if": "id=node/-1",
"then": "direction:var(--catch-detail-color)"
}
]
},
2020-11-17 01:22:48 +00:00
"rotation": {
2020-11-17 15:29:51 +00:00
"render": "{camera:direction}deg",
2020-11-17 01:22:48 +00:00
"mappings": [
{
"if": "direction~*",
2020-11-17 15:29:51 +00:00
"then": "{direction}deg"
2020-11-17 01:22:48 +00:00
}
]
},
"iconSize": "200,200,center",
2020-11-17 01:22:48 +00:00
"color": "--catch-detail-color",
"stroke": "0",
"presets": [],
"wayHandling": 2
}