forked from MapComplete/MapComplete
Refactoring: port PlantNet-detection to svelte, re-integrate wikipedia component
This commit is contained in:
parent
d1aa751e18
commit
5f04a69517
18 changed files with 297 additions and 210 deletions
|
@ -538,7 +538,7 @@ export default class SpecialVisualizations {
|
|||
const keys = args[0].split(";").map((k) => k.trim())
|
||||
const wikiIds: Store<string[]> = tagsSource.map((tags) => {
|
||||
const key = keys.find((k) => tags[k] !== undefined && tags[k] !== "")
|
||||
return tags[key]?.split(";")?.map((id) => id.trim())
|
||||
return tags[key]?.split(";")?.map((id) => id.trim()) ?? []
|
||||
})
|
||||
return new SvelteUIElement(WikipediaPanel, {
|
||||
wikiIds,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue