{
"id": "shared_icons",
"defaults": {
"builtin": [
"phonelink",
"emaillink",
"wikipedialink",
"smokingicon",
"osmlink",
"sharelink"
],
"override": {}
},
"wikipedialink": {
"render": "",
"condition": {
"or": [
"wikipedia~*",
"wikidata~*"
]
},
"mappings": [
{
"#": "ignore-image-in-then",
"if": "wikipedia=",
"then": ""
}
]
},
"isOpen": {
"#": "Shows a coloured clock if opening hours are parsed. Uses the metatagging, suitable to use as a (badged) overlay",
"mappings": [
{
"if": "_isOpen=yes",
"then": "clock:#0f0;ring:#0f0"
},
{
"if": "_isOpen=no",
"then": "circle:#f00;clock:#fff"
},
{
"#": "Still loading the country",
"if": {
"and": [
"_isOpen=",
"opening_hours~*"
]
},
"then": "clock:#ff0;ring:#ff0"
},
{
"#": "Still loading the country",
"if": {
"and": [
"_isOpen=parse_error",
"opening_hours~*"
]
},
"then": "circle:#f0f;clock:#fff"
}
]
},
"phonelink": {
"render": "",
"condition": "phone~*"
},
"emaillink": {
"render": "",
"condition": "email~*"
},
"smokingicon": {
"mappings": [
{
"#": "ignore-image-in-then",
"if": "smoking=no",
"then": ""
},
{
"#": "ignore-image-in-then",
"if": "smoking=yes",
"then": ""
}
]
},
"osmlink": {
"render": "",
"mappings": [
{
"if": "id~.*/-.*",
"then": ""
},
{
"#": "ignore-image-in-then",
"if": "_backend~*",
"then": ""
}
],
"condition": "id~(node|way|relation)/[0-9]*"
},
"sharelink": {
"render": "{share_link()}"
}
}