forked from MapComplete/MapComplete
		
	Merge master
This commit is contained in:
		
						commit
						3659276351
					
				
					 84 changed files with 3508 additions and 3472 deletions
				
			
		|  | @ -14,7 +14,6 @@ import { | |||
| } from "geojson" | ||||
| import { Tiles } from "../Models/TileRange" | ||||
| import { Utils } from "../Utils" | ||||
| 
 | ||||
| ;("use strict") | ||||
| 
 | ||||
| export class GeoOperations { | ||||
|  |  | |||
|  | @ -124,9 +124,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[] | ||||
| 
 | ||||
|  | @ -142,7 +140,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), { | ||||
|  |  | |||
|  | @ -170,7 +170,8 @@ export class Mapillary extends ImageProvider { | |||
|             properties: { | ||||
|                 url: response.thumb_2048_url, | ||||
|                 northOffset: response.computed_compass_angle, | ||||
|                 provider: this | ||||
|                 provider: this, | ||||
|                 imageMeta: <any>image, | ||||
|             }, | ||||
|         } | ||||
|     } | ||||
|  |  | |||
|  | @ -208,9 +208,7 @@ export default class PanoramaxImageProvider extends ImageProvider { | |||
|         return Stores.ListStabilized(source) | ||||
|     } | ||||
| 
 | ||||
|     public async DownloadAttribution(providedImage: { | ||||
|         id: string | ||||
|     }): Promise<LicenseInfo> { | ||||
|     public async DownloadAttribution(providedImage: { id: string }): Promise<LicenseInfo> { | ||||
|         const meta = await this.getInfoFor(providedImage.id) | ||||
| 
 | ||||
|         return { | ||||
|  | @ -250,7 +248,7 @@ export default class PanoramaxImageProvider extends ImageProvider { | |||
|                 northOffset, | ||||
|                 pitchOffset, | ||||
|                 provider: this, | ||||
|                 imageMeta: imageInfo | ||||
|                 imageMeta: imageInfo, | ||||
|             }, | ||||
|         } | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue