forked from MapComplete/MapComplete
Fix: also show wikimedia images if the 'http'-url was used
This commit is contained in:
parent
8d678008b7
commit
35c4222466
1 changed files with 3 additions and 1 deletions
|
@ -15,7 +15,9 @@ export class WikimediaImageProvider extends ImageProvider {
|
||||||
"https://commons.wikimedia.org/wiki/",
|
"https://commons.wikimedia.org/wiki/",
|
||||||
"https://upload.wikimedia.org",
|
"https://upload.wikimedia.org",
|
||||||
]
|
]
|
||||||
public static readonly commonsPrefixes = [...WikimediaImageProvider.apiUrls, "File:"]
|
public static readonly commonsPrefixes = [...WikimediaImageProvider.apiUrls,
|
||||||
|
"http://commons.wikimedia.org/wiki/",
|
||||||
|
"http://upload.wikimedia.org", "File:"]
|
||||||
private readonly commons_key = "wikimedia_commons"
|
private readonly commons_key = "wikimedia_commons"
|
||||||
public readonly defaultKeyPrefixes = [this.commons_key, "image"]
|
public readonly defaultKeyPrefixes = [this.commons_key, "image"]
|
||||||
public readonly name = "Wikimedia"
|
public readonly name = "Wikimedia"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue