Move label if icon is rendered

This commit is contained in:
Robin van der Linde 2022-08-03 15:14:24 +02:00
parent e8fa6f3f30
commit 81e711d6c4
Signed by untrusted user: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D

View file

@ -137,7 +137,39 @@
{
"label": {
"render": "<div style='margin-top: -20px; color:#013220; background:white' class='rounded-full p-1 font-bold'>{name}</div>",
"condition": "name~*"
"condition": "name~*",
"mappings": [
{
"if": {
"or": [
"room=administration",
"room=auditorium",
"room=bedroom",
"room=chapel",
"room=class",
"room=computer",
"room=conference",
"room=crypt",
"room=kitchen",
"room=laboratory",
"room=library",
"room=locker",
"room=nursery",
"room=office",
"room=prison_cell",
"room=restaurant",
"room=security_check",
"room=sport",
"room=storage",
"room=technical",
"room=toilet",
"room=toilets",
"room=waiting"
]
},
"then": "<div style='margin-top: 0px; color:#013220; background:white' class='rounded-full p-1 font-bold'>{name}</div>"
}
]
},
"location": [
"point",
@ -182,7 +214,7 @@
}
]
},
"iconSize": "15,15, center"
"iconSize": "15,15, bottom"
}
]
}