<Infos> : displaying feature tags.
This commit is contained in:
parent
8e519dd862
commit
1388f993ea
|
@ -257,6 +257,27 @@ const Infos: Component<{}> = (props) => {
|
|||
{feature.getProperties()[key]}
|
||||
</Button>
|
||||
</Match>
|
||||
<Match when={key === 'tags'}>
|
||||
tags:
|
||||
<ul>
|
||||
<For
|
||||
each={Object.keys(
|
||||
feature.getProperties()[key]
|
||||
)}
|
||||
>
|
||||
{(tagKey) => (
|
||||
<li>
|
||||
{tagKey}:
|
||||
{
|
||||
feature.getProperties()[key][
|
||||
tagKey
|
||||
]
|
||||
}
|
||||
</li>
|
||||
)}
|
||||
</For>
|
||||
</ul>
|
||||
</Match>
|
||||
</Switch>
|
||||
</div>
|
||||
)}
|
||||
|
|
Loading…
Reference in New Issue