forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
d3dc1ac4c0
commit
b4efa38c06
96 changed files with 3045 additions and 2849 deletions
|
@ -123,9 +123,7 @@ export default abstract class ImageProvider {
|
|||
value: string
|
||||
): undefined | ProvidedImage[] | Promise<ProvidedImage[]>
|
||||
|
||||
public abstract DownloadAttribution(providedImage: {
|
||||
id: string
|
||||
}): Promise<LicenseInfo>
|
||||
public abstract DownloadAttribution(providedImage: { id: string }): Promise<LicenseInfo>
|
||||
|
||||
public abstract apiUrls(): string[]
|
||||
|
||||
|
@ -141,7 +139,7 @@ export default abstract class ImageProvider {
|
|||
id: string
|
||||
}): Promise<Feature<Point, PanoramaView>> | undefined
|
||||
|
||||
public static async offerImageAsDownload(image: { url_hd?: string, url: string }) {
|
||||
public static async offerImageAsDownload(image: { url_hd?: string; url: string }) {
|
||||
const response = await fetch(image.url_hd ?? image.url)
|
||||
const blob = await response.blob()
|
||||
Utils.offerContentsAsDownloadableFile(blob, new URL(image.url).pathname.split("/").at(-1), {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue