forked from MapComplete/MapComplete
Add Relatify icon (#1633)
This commit is contained in:
parent
83d936d98c
commit
a71b987506
4 changed files with 32 additions and 2 deletions
12
assets/layers/transit_routes/license_info.json
Normal file
12
assets/layers/transit_routes/license_info.json
Normal 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"
|
||||
]
|
||||
}
|
||||
]
|
BIN
assets/layers/transit_routes/relatify.png
Normal file
BIN
assets/layers/transit_routes/relatify.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 63 KiB |
2
assets/layers/transit_routes/relatify.png.license
Normal file
2
assets/layers/transit_routes/relatify.png.license
Normal file
|
@ -0,0 +1,2 @@
|
|||
SPDX-FileCopyrightText: Kamil Monicz
|
||||
SPDX-License-Identifier: AGPLv3
|
|
@ -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]"
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue