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
|
@ -106,8 +106,6 @@ export interface LayerConfigJson {
|
|||
* To make things even more practical, one can use all svgs from the folder "assets/svg" and _substitute the color_ in it.
|
||||
* E.g. to draw a red pin, use "pin:#f00", to have a green circle with your icon on top, use `circle:#0f0;<path to my icon.svg>`
|
||||
*
|
||||
* Also note that one can specify to use HTML by entering some html between "<html>" and "</html" into here, for example
|
||||
* "icon": "some_icon.svg;<html><div style="margin-top: 50px; background: white; display: block">{name}</div>"
|
||||
*/
|
||||
icon?: string | TagRenderingConfigJson;
|
||||
|
||||
|
@ -131,7 +129,12 @@ export interface LayerConfigJson {
|
|||
* Usage: as if it were a css property for 'rotate', thus has to end with 'deg', e.g. `90deg`, `{direction}deg`, `calc(90deg - {camera:direction}deg)``
|
||||
*/
|
||||
rotation?: string | TagRenderingConfigJson;
|
||||
|
||||
/**
|
||||
* A HTML-fragment that is shown at the center of the icon, for example:
|
||||
* <div style="margin-top: 50px; background: white; display: block">{name}</div>
|
||||
*/
|
||||
label?: string | TagRenderingConfigJson ;
|
||||
|
||||
/**
|
||||
* The color for way-elements and SVG-elements.
|
||||
* If the value starts with "--", the style of the body element will be queried for the corresponding variable instead
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue