forked from MapComplete/MapComplete
Add title icons to favourites layer
This commit is contained in:
parent
3b9035e3b4
commit
37cdf0f01a
3 changed files with 45 additions and 12 deletions
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"#":"no-translations",
|
||||
"#dont-translate": "*",
|
||||
"pointRendering": [
|
||||
{
|
||||
"location": [
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
{
|
||||
"id": "wikipedialink",
|
||||
"labels": [
|
||||
"defaults"
|
||||
"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": {
|
||||
|
@ -69,7 +69,7 @@
|
|||
{
|
||||
"id": "phonelink",
|
||||
"labels": [
|
||||
"defaults"
|
||||
"defaults", "in_favourite"
|
||||
],
|
||||
"render": "<a href='tel:{phone}'><img textmode='📞' alt='phone' src='./assets/layers/questions/phone.svg'/></a>",
|
||||
"mappings": [
|
||||
|
@ -89,7 +89,7 @@
|
|||
{
|
||||
"id": "emaillink",
|
||||
"labels": [
|
||||
"defaults"
|
||||
"defaults", "in_favourite"
|
||||
],
|
||||
"render": "<a href='mailto:{email}'><img textmode='✉️' alt='email' src='./assets/layers/questions/send_email.svg'/></a>",
|
||||
"mappings": [
|
||||
|
@ -109,7 +109,7 @@
|
|||
{
|
||||
"id": "websitelink",
|
||||
"labels": [
|
||||
"defaults"
|
||||
"defaults", "in_favourite"
|
||||
],
|
||||
"render": "<a href='{website}' target='_blank' rel='noopener'><img textmode='🌐' alt='website' src='./assets/layers/icons/website.svg'/></a>",
|
||||
"condition": "website~*"
|
||||
|
@ -117,7 +117,7 @@
|
|||
{
|
||||
"id": "smokingicon",
|
||||
"labels": [
|
||||
"defaults"
|
||||
"defaults", "in_favourite"
|
||||
],
|
||||
"mappings": [
|
||||
{
|
||||
|
@ -171,7 +171,7 @@
|
|||
{
|
||||
"id": "dogicon",
|
||||
"labels": [
|
||||
"defaults"
|
||||
"defaults", "in_favourite"
|
||||
],
|
||||
"mappings": [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue