mapcomplete/assets/layers/icons/icons.json

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

410 lines
11 KiB
JSON
Raw Normal View History

{
"id": "icons",
"description": {
2023-12-03 20:01:11 +01:00
"en": "A layer acting as library for icon-tagrenderings, especially to show as badge next to a POI",
2023-09-19 14:22:52 +02:00
"de": "Eine Ebene, die als Bibliothek für Symbol-Tag-Renderings dient, insbesondere um als Abzeichen neben einem POI angezeigt zu werden",
2023-10-30 13:44:27 +01:00
"ca": "Una capa que actua com a biblioteca per a les icones d'etiquetes, especialment per mostrar-se com a insígnia al costat d'un PDI",
"cs": "Vrstva sloužící jako knihovna pro ikony-značky, zejména pro zobrazení jako odznak vedle bodu zájmu"
},
2023-03-29 17:21:20 +02:00
"source": "special:library",
"title": null,
"pointRendering": null,
"lineRendering": null,
"tagRenderings": [
{
"id": "wikipedialink",
"labels": [
2023-12-03 20:01:11 +01:00
"defaults",
"in_favourite"
],
"render": "<a href='https://wikipedia.org/wiki/{wikipedia}' target='_blank' rel='noopener'><img src='./assets/svg/wikipedia.svg' textmode='📖' alt='Wikipedia'/></a>",
"condition": {
"or": [
"wikipedia~*",
"wikidata~*"
]
},
"mappings": [
{
"#": "ignore-image-in-then",
"if": "wikipedia=",
"then": "<a class='h-8' href='https://www.wikidata.org/wiki/{wikidata}' target='_blank' rel='noopener'><img src='./assets/svg/wikidata.svg' alt='Wikidata'/></a>"
}
]
},
{
"id": "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"
}
],
"metacondition": "__showTimeSensitiveIcons!=no"
},
2023-12-04 16:08:47 +01:00
{
"id": "open_until",
"labels": [
"defaults",
"in_favourite"
],
"#": "Titleicon showing e.g. 'open until 17:00'",
2023-12-04 03:32:25 +01:00
"icon": {
2024-06-19 00:09:11 +02:00
"class": "mx-1 flex items-center"
2023-12-04 03:32:25 +01:00
},
"render": "{opening_hours_state()}",
"condition": {
"or": [
"opening_hours~*",
{
"or": [
{
"and": [
"seasonal~.*winter.*",
"_now:date~....-(12|01|02)-.."
]
},
{
"and": [
"seasonal~.*spring.*",
"_now:date~....-(03|04|05)-.."
]
},
{
"and": [
"seasonal~.*summer.*",
"_now:date~....-(06|07|08)-.."
]
},
{
"and": [
"seasonal~.*autumn.*",
"_now:date~....-(09|10|11)-.."
]
}
]
}
]
}
2023-12-04 03:32:25 +01:00
},
{
"id": "phonelink",
"labels": [
2023-12-03 20:01:11 +01:00
"defaults",
"in_favourite"
],
"render": {
"special": {
"type": "link",
"href": "tel:{phone}",
"text": "<img textmode='📞' alt='phone' src='./assets/layers/questions/phone.svg'/>",
"arialabel": {
"en": "phone",
2024-01-19 01:21:18 +01:00
"nl": "Telefoneer",
2024-06-16 16:06:26 +02:00
"de": "Telefon",
"pl": "telefon"
}
}
},
"mappings": [
{
"#": "ignore-image-in-then",
"if": "contact:phone~*",
"then": {
"special": {
"type": "link",
"href": "tel:{contact:phone}",
"text": "<img textmode='📞' alt='phone' src='./assets/layers/questions/phone.svg'/>",
"arialabel": {
"en": "phone",
2024-01-19 01:21:18 +01:00
"nl": "Telefoneer",
2024-06-16 16:06:26 +02:00
"de": "Telefon",
"pl": "telefon"
}
}
}
}
],
"condition": {
"or": [
"phone~*",
"contact:phone~*"
]
}
},
{
"id": "emaillink",
"labels": [
2023-12-03 20:01:11 +01:00
"defaults",
"in_favourite"
],
"render": "<a href='mailto:{email}'><img textmode='✉️' alt='email' src='./assets/layers/questions/send_email.svg'/></a>",
"mappings": [
{
"#": "ignore-image-in-then",
"if": "contact:email~*",
"then": "<a href='mailto:{contact:email}'><img textmode='✉️' alt='email' src='./assets/layers/questions/send_email.svg'/></a>"
},
{
"#": "ignore-image-in-then",
"if": "operator:email~*",
"then": "<a href='mailto:{operator:email}'><img textmode='✉️' alt='email' src='./assets/layers/questions/send_email.svg'/></a>"
}
],
"condition": {
"or": [
"email~*",
"contact:email~*",
"operator:email~*"
]
}
},
{
"id": "websitelink",
"labels": [
2023-12-03 20:01:11 +01:00
"defaults",
"in_favourite"
],
"mappings": [
{
"#": "ignore-image-in-then",
"if": "website~*",
"then": "<a href='{website}' target='_blank' rel='noopener'><img textmode='🌐' alt='website' src='./assets/layers/icons/website.svg'/></a>"
},
{
"#": "ignore-image-in-then",
"if": "operator:website~*",
"then": "<a href='{operator:website}' target='_blank' rel='noopener'><img textmode='🌐' alt='website' src='./assets/layers/icons/website.svg'/></a>"
},
{
"#": "ignore-image-in-then",
"if": "contact:website~*",
"then": "<a href='{contact:website}' target='_blank' rel='noopener'><img textmode='🌐' alt='website' src='./assets/layers/icons/website.svg'/></a>"
}
]
},
{
"id": "smokingicon",
"labels": [
2023-12-03 20:01:11 +01:00
"defaults",
"in_favourite"
],
"mappings": [
{
"#": "ignore-image-in-then",
"if": "smoking=no",
"then": "<img textmode='🚭️' alt='no smoking' src='./assets/layers/questions/no_smoking.svg'/>"
},
{
"#": "ignore-image-in-then",
"if": "smoking=yes",
"then": "<img textmode='🚬️' alt='smoking allowed' src='./assets/layers/questions/smoking.svg'/>"
}
]
},
2024-02-15 16:28:51 +01:00
{
"id": "dogicon",
"labels": [
"defaults",
"in_favourite"
],
"mappings": [
{
"if": "dog=no",
"#": "ignore-image-in-then",
"then": "<img textmode='🐕 ⃠' alt='no_dogs' src='./assets/layers/questions/no_dogs.svg'>"
},
{
"if": "dog=leashed",
"#": "ignore-image-in-then",
"then": "<img textmode='🐕' alt='dogs are allowed but leashed' src='./assets/layers/questions/dogs_leashed.svg'>"
},
{
"if": {
"or": [
"dog=yes",
"dog=unleashed"
]
},
"#": "ignore-image-in-then",
"then": "<img textmode='🐕' alt='dogs are allowed' src='./assets/layers/questions/dogs_allowed.svg'>"
}
]
},
2024-07-21 10:52:51 +02:00
{
"id": "lactosefree",
"labels": [
"defaults",
"in_favourite"
],
"mappings": [
{
"if": {
2024-07-21 10:52:51 +02:00
"or": [
"diet:lactose_free=only",
"diet:lactose_free=yes",
"diet:lactose_free=limited"
]
},
"#": "ignore-image-in-then",
"then": "<img alt='lactose free' src='./assets/layers/questions/lactose_free.svg'>"
}
]
},
2024-07-21 10:52:51 +02:00
{
"id": "glutenfree",
"labels": [
"defaults",
"in_favourite"
],
"mappings": [
{
"if": {
2024-07-21 10:52:51 +02:00
"or": [
"diet:gluten_free=only",
"diet:gluten_free=yes",
"diet:gluten_free=limited"
]
},
"#": "ignore-image-in-then",
"then": "<img alt='gluten free' src='./assets/layers/questions/glutenfree.svg'>"
}
]
},
{
"id": "sharelink",
"labels": [
"defaults"
],
2023-05-05 16:12:28 +02:00
"render": "{share_link()}",
"metacondition": "_supports_sharing=yes"
},
2023-11-22 19:39:19 +01:00
{
"id": "favourite_title_icon",
"labels": [
"defaults"
],
"render": {
2023-12-03 20:01:11 +01:00
"*": "{favourite_icon()}"
},
"metacondition": "_loggedIn=true"
2023-11-22 19:39:19 +01:00
},
{
"id": "osmlink",
"labels": [
"defaults"
],
"render": {
"special": {
"type": "link",
"text": "<img alt='on osm' textmode='🗺️' src='./assets/svg/osm-logo-us.svg'/>",
"href": "https://openstreetmap.org/{id}",
"arialabel": {
"en": "Open on openstreetmap.org",
2024-01-19 01:21:18 +01:00
"nl": "Bekijk op openstreetmap.org",
2024-06-16 16:06:26 +02:00
"de": "Auf openstreetmap.org öffnen",
2024-06-24 13:11:35 +02:00
"pl": "Otwórz na openstreetmap.org",
"da": "Åbn på openstreetmap.org"
}
}
},
"metacondition": "_loggedIn=true",
"mappings": [
{
"if": "id~.*/-.*",
"then": ""
},
{
"#": "ignore-image-in-then",
"if": "_backend~*",
"then": {
"special": {
"type": "link",
"text": "<img alt='on osm' textmode='🗺️' src='./assets/svg/osm-logo-us.svg'/>",
"href": "{_backend}/{id}",
"arialabel": {
"en": "Open on openstreetmap.org",
2024-01-19 01:21:18 +01:00
"nl": "Bekijk op openstreetmap.org",
2024-06-16 16:06:26 +02:00
"de": "Auf openstreetmap.org öffnen",
2024-06-24 13:11:35 +02:00
"pl": "Otwórz na openstreetmap.org",
"da": "Åbn på openstreetmap.org"
}
}
}
2024-08-23 02:16:24 +02:00
},
{
"#": "ignore-image-in-then",
"if": "osm_id~*",
"then": {
"special": {
"type": "link",
"text": "<img alt='on osm' textmode='🗺️' src='./assets/svg/osm-logo-us.svg'/>",
"href": "https://www.openstreetmap.org/{osm_id}",
"arialabel": {
"en": "Open on openstreetmap.org",
"nl": "Bekijk op openstreetmap.org",
"de": "Auf openstreetmap.org öffnen",
"pl": "Otwórz na openstreetmap.org",
"da": "Åbn på openstreetmap.org"
}
}
}
}
],
2024-08-23 02:16:24 +02:00
"condition": {
"or": [
"id~(node|way|relation)/[0-9]*",
"osm_id~*"
]
}
},
2023-09-28 04:02:42 +02:00
{
"id": "rating",
"icon": {
"class": "w-20 mx-1 flex items-center"
},
"render": "{rating()}"
2023-11-22 19:39:19 +01:00
},
{
"id": "favourite_icon",
"description": "Only for rendering",
"condition": "_favourite=yes",
"icon": "circle:white;heart:red",
"metacondition": "__showTimeSensitiveIcons!=no"
},
{
"id": "direction",
"labels": [
"defaults",
"in_favourite"
],
"render": "{direction_indicator()}"
}
]
2023-05-05 16:12:28 +02:00
}