Add Relatify icon (#1633)

This commit is contained in:
Robin van der Linde 2023-10-03 20:09:39 +02:00
parent 83d936d98c
commit a71b987506
Signed by: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D
4 changed files with 32 additions and 2 deletions

View file

@ -0,0 +1,12 @@
[
{
"path": "relatify.png",
"license": "AGPLv3",
"authors": [
"Kamil Monicz"
],
"sources": [
"https://github.com/Zaczero/osm-relatify/blob/main/web/static/img/icon.png"
]
}
]

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

View file

@ -0,0 +1,2 @@
SPDX-FileCopyrightText: Kamil Monicz
SPDX-License-Identifier: AGPLv3

View file

@ -60,7 +60,8 @@
"then": "{colour}"
}
]
}
},
"width": 5
}
],
"tagRenderings": [
@ -209,5 +210,20 @@
"ca": "Quina companyia opera aquesta línia d'autobús?"
}
}
],
"titleIcons": [
{
"condition": {
"and": [
"id~relation/[0-9]+",
"_numeric_id~*"
]
},
"render": "<a href=' https://relatify.monicz.dev/?relation={_numeric_id}&load=1' target='_blank' rel='noopener'><img alt='on relatify' textmode='🗺️' src='./assets/layers/transit_routes/relatify.png'/></a>"
},
"icons.defaults"
],
"calculatedTags": [
"_numeric_id=feat.properties.id.split('/')[1]"
]
}
}