+ {#if $dataCleaned !== undefined && Object.keys($dataCleaned).length === 0}
+ No new data from website
+ {:else if !$data}
+
+ {:else}
+ {$distanceToFeature}
+
+ {#each Object.keys($dataCleaned) as k}
+ -
+ {k}: {JSON.stringify($dataCleaned[k])} {$tagsSource[k]} {($dataCleaned[k]) === $tagsSource[k]}
+
+ {/each}
+
+ {/if}
+
+{/if}
diff --git a/src/UI/SpecialVisualizations.ts b/src/UI/SpecialVisualizations.ts
index e353fcdd9..808f046fe 100644
--- a/src/UI/SpecialVisualizations.ts
+++ b/src/UI/SpecialVisualizations.ts
@@ -93,6 +93,7 @@ import SpecialVisualisationUtils from "./SpecialVisualisationUtils"
import LoginButton from "./Base/LoginButton.svelte"
import Toggle from "./Input/Toggle"
import ImportReviewIdentity from "./Reviews/ImportReviewIdentity.svelte"
+import LinkedDataDisplay from "./LinkedDataDisplay.svelte"
class NearbyImageVis implements SpecialVisualization {
// Class must be in SpecialVisualisations due to weird cyclical import that breaks the tests
@@ -741,12 +742,20 @@ export default class SpecialVisualizations {
{
funcName: "import_mangrove_key",
docs: "Only makes sense in the usersettings. Allows to import a mangrove public key and to use this to make reviews",
- args: [{
- name: "text",
- doc: "The text that is shown on the button",
- }],
+ args: [
+ {
+ name: "text",
+ doc: "The text that is shown on the button",
+ },
+ ],
needsUrls: [],
- constr(state: SpecialVisualizationState, tagSource: UIEventSource