<Infos> : displaying feature tags.

This commit is contained in:
Eric van der Vlist 2023-02-03 18:37:54 +01:00
parent 8e519dd862
commit 1388f993ea
1 changed files with 21 additions and 0 deletions

View File

@ -257,6 +257,27 @@ const Infos: Component<{}> = (props) => {
{feature.getProperties()[key]} {feature.getProperties()[key]}
</Button> </Button>
</Match> </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> </Switch>
</div> </div>
)} )}