forked from MapComplete/MapComplete
Merge branch 'master' into develop
This commit is contained in:
commit
c6795e21cf
477 changed files with 46658 additions and 7767 deletions
|
|
@ -116,10 +116,10 @@
|
|||
<DotMenu dotsPosition="top-0 left-0 absolute" hideBackground>
|
||||
<slot name="dot-menu-actions" />
|
||||
{#if visitUrl !== undefined}
|
||||
<a href={visitUrl} target="_blank" rel="noopener">
|
||||
<ExternalLinkIcon class="w-6" />
|
||||
<Tr t={Translations.t.image.openOnWebsite.Subs(image.provider)} />
|
||||
</a>
|
||||
<a href={visitUrl} target="_blank" rel="noopener">
|
||||
<ExternalLinkIcon class="w-6" />
|
||||
<Tr t={Translations.t.image.openOnWebsite.Subs(image.provider)} />
|
||||
</a>
|
||||
{/if}
|
||||
</DotMenu>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@
|
|||
export let image: Partial<ProvidedImage> & { id: string; url: string }
|
||||
export let attributionFormat: "minimal" | "medium" | "large" = "medium"
|
||||
|
||||
let license: Store<LicenseInfo> = image.license ? new ImmutableStore(image.license) : UIEventSource.FromPromise(
|
||||
image.provider?.DownloadAttribution(image)
|
||||
)
|
||||
let license: Store<LicenseInfo> = image.license
|
||||
? new ImmutableStore(image.license)
|
||||
: UIEventSource.FromPromise(image.provider?.DownloadAttribution(image))
|
||||
let icon = image.provider?.SourceIcon(image)
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@
|
|||
artist: image.author,
|
||||
license: image.license,
|
||||
date: new Date(image.date),
|
||||
informationLocation: image.detailsUrl
|
||||
informationLocation: image.detailsUrl,
|
||||
}
|
||||
let providedImage: ProvidedImage = {
|
||||
url: image.thumbUrl ?? image.pictureUrl,
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
date: new Date(image.date),
|
||||
id: Object.values(image.osmTags)[0],
|
||||
isSpherical: image.details.isSpherical,
|
||||
license
|
||||
license,
|
||||
}
|
||||
|
||||
async function applyLink(isLinked: boolean) {
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ export class PhotoSphereViewerWrapper {
|
|||
panorama: imageInfo.properties.url,
|
||||
northOffset: imageInfo.properties.northOffset,
|
||||
type: "equirectangular",
|
||||
showControls: false
|
||||
showControls: false,
|
||||
})
|
||||
|
||||
this.viewer.loadScene(imageInfo.properties.url, 0, imageInfo.properties.northOffset)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue