forked from MapComplete/MapComplete
More work on inspector
This commit is contained in:
parent
552ea22275
commit
951bd3c0ae
9 changed files with 257 additions and 108 deletions
13
src/UI/History/AttributedPanoramaxImage.svelte
Normal file
13
src/UI/History/AttributedPanoramaxImage.svelte
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<script lang="ts">
|
||||
import AttributedImage from "../Image/AttributedImage.svelte"
|
||||
import PanoramaxImageProvider from "../../Logic/ImageProviders/Panoramax"
|
||||
import { UIEventSource } from "../../Logic/UIEventSource"
|
||||
import type { ProvidedImage } from "../../Logic/ImageProviders/ImageProvider"
|
||||
|
||||
export let hash: string
|
||||
let image: UIEventSource<ProvidedImage> = UIEventSource.FromPromise(PanoramaxImageProvider.singleton.getInfo(hash))
|
||||
</script>
|
||||
|
||||
{#if $image !== undefined}
|
||||
<AttributedImage image={$image}></AttributedImage>
|
||||
{/if}
|
||||
Loading…
Add table
Add a link
Reference in a new issue