Feature(360): fix css, fix CSP

This commit is contained in:
Pieter Vander Vennet 2025-03-30 15:18:20 +02:00
parent 97df9abab2
commit a30f25f42a
4 changed files with 11 additions and 2 deletions

View file

@ -166,6 +166,7 @@ class ImagesFromPanoramaxFetcher implements ImageFetcher {
private readonly _radius: number
private readonly _panoramax: Panoramax
name: string = "panoramax"
public static readonly apiUrls: ReadonlyArray<string> = ["https://panoramax.openstreetmap.fr", "https://api.panoramax.xyz", "https://panoramax.mapcomplete.org"]
constructor(url?: string, radius: number = 100) {
this._radius = radius
@ -216,6 +217,7 @@ class MapillaryFetcher implements ImageFetcher {
private readonly start_captured_at?: Date
private readonly end_captured_at?: Date
static apiUrls: string[] = ["*.fbcdn.net", "https://graph.mapillary.com"]
constructor(options?: {
panoramas?: undefined | "only" | "no"
@ -295,7 +297,11 @@ type P4CService = (typeof P4CImageFetcher.services)[number]
export class CombinedFetcher {
private readonly sources: ReadonlyArray<CachedFetcher>
public static apiUrls = [...P4CImageFetcher.apiUrls, Imgur.apiUrl, ...Imgur.supportingUrls]
public static apiUrls = [...P4CImageFetcher.apiUrls,
Imgur.apiUrl, ...Imgur.supportingUrls,
...MapillaryFetcher.apiUrls,
...ImagesFromPanoramaxFetcher.apiUrls
]
constructor(radius: number, maxage: Date, indexedFeatures: IndexedFeatureSource) {
this.sources = [