forked from MapComplete/MapComplete
Refactoring of labels, better exposure
This commit is contained in:
parent
04b83311f7
commit
12b92d286b
4 changed files with 23 additions and 36 deletions
|
@ -37,11 +37,13 @@
|
|||
]
|
||||
},
|
||||
"icon": {
|
||||
"render": "./assets/themes/bookcases/bookcase.svg;",
|
||||
"render": "./assets/themes/bookcases/bookcase.svg;"
|
||||
},
|
||||
"label": {
|
||||
"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>"
|
||||
"then": "<div style='margin-top: 42px; background: white; padding: 0.25em; border-radius:0.5em'>{name}</div>"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue