forked from MapComplete/MapComplete
Add HTML rendering options to icons
This commit is contained in:
parent
b3f02572d5
commit
4d5c250f8f
5 changed files with 77 additions and 34 deletions
|
@ -37,7 +37,13 @@
|
|||
]
|
||||
},
|
||||
"icon": {
|
||||
"render": "./assets/themes/bookcases/bookcase.svg"
|
||||
"render": "./assets/themes/bookcases/bookcase.svg;",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "name~*",
|
||||
"then": "./assets/themes/bookcases/bookcase.svg;<html><div style='margin-top: 42px; background: white; padding: 0.25em; border-radius:0.5em'>{name}</div></html>"
|
||||
}
|
||||
]
|
||||
},
|
||||
"color": {
|
||||
"render": "#0000ff"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue