diff --git a/langs/en.json b/langs/en.json index 6491938e1b..cc9974402e 100644 --- a/langs/en.json +++ b/langs/en.json @@ -407,7 +407,8 @@ "isDeleted": "Deleted", "nearby": { "link": "This picture shows the object", - "seeNearby": "Browse and link nearby pictures" + "seeNearby": "Browse and link nearby pictures", + "title": "Nearby streetview imagery" }, "pleaseLogin": "Please log in to add a picture", "respectPrivacy": "Do not photograph people nor license plates. Do not upload Google Maps, Google Streetview or other copyrighted sources.", diff --git a/src/UI/Popup/NearbyImages.svelte b/src/UI/Popup/NearbyImages.svelte index eb79e80ffe..30c886914e 100644 --- a/src/UI/Popup/NearbyImages.svelte +++ b/src/UI/Popup/NearbyImages.svelte @@ -11,6 +11,8 @@ import type { Feature } from "geojson"; import LayerConfig from "../../Models/ThemeConfig/LayerConfig"; import Loading from "../Base/Loading.svelte"; import AllImageProviders from "../../Logic/ImageProviders/AllImageProviders"; +import Tr from "../Base/Tr.svelte"; +import Translations from "../i18n/Translations"; export let tags: Store; export let state: SpecialVisualizationState; @@ -30,12 +32,23 @@ let images: Store = imagesProvider.store.map(images => images.slic -{#if $images.length === 0} - -{:else} -
- {#each $images as image (image.pictureUrl)} - - {/each} +
+
+ +

+ +

+
-{/if} + {#if $images.length === 0} + + {:else} +
+ {#each $images as image (image.pictureUrl)} + + + + {/each} +
+ {/if} +
diff --git a/src/UI/Popup/NearbyImagesCollapsed.svelte b/src/UI/Popup/NearbyImagesCollapsed.svelte index ae14026724..e1679bff93 100644 --- a/src/UI/Popup/NearbyImagesCollapsed.svelte +++ b/src/UI/Popup/NearbyImagesCollapsed.svelte @@ -9,6 +9,8 @@ import NearbyImages from "./NearbyImages.svelte"; import Svg from "../../Svg"; import ToSvelte from "../Base/ToSvelte.svelte"; + import { XCircleIcon } from "@babeard/svelte-heroicons/solid"; + import exp from "constants"; export let tags: Store; export let state: SpecialVisualizationState; @@ -24,7 +26,9 @@ {#if expanded} - + + {expanded = false}}/> + {:else}