forked from MapComplete/MapComplete
Feat: check if the image was blurred, attempt to reload if it is done; refactoring of ImageProvider code
This commit is contained in:
parent
590591dd31
commit
4650170db4
14 changed files with 224 additions and 190 deletions
|
|
@ -131,8 +131,9 @@ export class Mapillary extends ImageProvider {
|
|||
return new SvelteUIElement(MapillaryIcon, { url })
|
||||
}
|
||||
|
||||
async ExtractUrls(key: string, value: string): Promise<Promise<ProvidedImage>[]> {
|
||||
return [this.PrepareUrlAsync(key, value)]
|
||||
async ExtractUrls(key: string, value: string): Promise<ProvidedImage[]> {
|
||||
const img = await this.PrepareUrlAsync(key, value)
|
||||
return [img]
|
||||
}
|
||||
|
||||
public async DownloadAttribution(providedImage: { id: string }): Promise<LicenseInfo> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue