<Infos> : displaying feature tags.
This commit is contained in:
1 parent
8e519dd862
commit
1388f993ea
1 file changed
+21
@@ -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>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in new issue
Block a user