Fix: fix link in attributed images, as reported by Luna

This commit is contained in:
Pieter Vander Vennet 2025-02-07 23:37:36 +01:00
parent 48a340de78
commit aead4c4809

View file

@ -26,13 +26,14 @@ export default class PanoramaxImageProvider extends ImageProvider {
private static knownMeta: Record<string, { data: ImageData; time: Date }> = {}
public SourceIcon(
img?: { id: string; url: string; host?: string },
img?: { id: string; url: string },
location?: {
lon: number
lat: number
}
): BaseUIElement {
const p = new Panoramax(img.host)
const host = ("https://" + new URL(img.url).host)
const p = new Panoramax(host)
return new Link(
new SvelteUIElement(Panoramax_bw),
p.createViewLink({