diff --git a/assets/layers/tree_node/tree_node.json b/assets/layers/tree_node/tree_node.json
index 744cdc62d3..67593332e2 100644
--- a/assets/layers/tree_node/tree_node.json
+++ b/assets/layers/tree_node/tree_node.json
@@ -74,8 +74,7 @@
"images",
{
"id": "plantnet",
- "render": "{plantnet_detection()}",
- "condition": "species:wikidata="
+ "render": "{plantnet_detection()}"
},
{
"id": "tree-species-wikidata",
diff --git a/src/UI/PlantNet/PlantNet.svelte b/src/UI/PlantNet/PlantNet.svelte
index 170c7fc182..b828de04b9 100644
--- a/src/UI/PlantNet/PlantNet.svelte
+++ b/src/UI/PlantNet/PlantNet.svelte
@@ -99,11 +99,11 @@
-
+
{selectedOption = undefined}}>
- { done = true; onConfirm(selectedOption); }} >
+ { done = true; onConfirm(selectedOption); }} >
@@ -115,8 +115,8 @@
|
{/if}
-
-
+
+
diff --git a/src/UI/PlantNet/SpeciesButton.svelte b/src/UI/PlantNet/SpeciesButton.svelte
index de7f873332..9e3a44b91b 100644
--- a/src/UI/PlantNet/SpeciesButton.svelte
+++ b/src/UI/PlantNet/SpeciesButton.svelte
@@ -36,9 +36,7 @@ const wikidataId: Store
= UIEventSource.FromPromise(
).mapD(wd => wd[0]?.species?.value);
-{
- console.log("Dispatching: ", $wikidataId)
- return dispatch("selected", $wikidataId); }}>
+ dispatch("selected", $wikidataId)}>
{#if $wikidata === undefined}
image.pictureUrl === v);
const t = Translations.t.image.nearby;
const c = [lon, lat];
@@ -35,6 +35,7 @@
date: new Date(image.date)
});
let distance = Math.round(GeoOperations.distanceBetween([image.coordinates.lng, image.coordinates.lat], c));
+
$: {
const currentTags = tags.data;
const key = Object.keys(image.osmTags)[0];
diff --git a/src/UI/Popup/PlantNetDetectionViz.ts b/src/UI/Popup/PlantNetDetectionViz.ts
index 69397cabdf..ed5a7acc4f 100644
--- a/src/UI/Popup/PlantNetDetectionViz.ts
+++ b/src/UI/Popup/PlantNetDetectionViz.ts
@@ -1,6 +1,5 @@
import { Store, UIEventSource } from "../../Logic/UIEventSource"
import { ProvidedImage } from "../../Logic/ImageProviders/ImageProvider"
-import PlantNetSpeciesSearch from "../BigComponents/PlantNetSpeciesSearch"
import Wikidata from "../../Logic/Web/Wikidata"
import ChangeTagAction from "../../Logic/Osm/Actions/ChangeTagAction"
import { And } from "../../Logic/Tags/And"