forked from MapComplete/MapComplete
Chore: housekeeping
This commit is contained in:
parent
cd9e03dd6f
commit
b300fffdc5
156 changed files with 4436 additions and 1318 deletions
|
|
@ -83,11 +83,15 @@ export default class AllImageProviders {
|
|||
): number {
|
||||
let count = 0
|
||||
|
||||
const sources = [Imgur.singleton,
|
||||
const sources = [
|
||||
Imgur.singleton,
|
||||
Mapillary.singleton,
|
||||
Panoramax.singleton,
|
||||
AllImageProviders.genericImageProvider]
|
||||
const allPrefixes = Utils.Dedup(prefixes ?? [].concat(...sources.map(s => s.defaultKeyPrefixes)))
|
||||
AllImageProviders.genericImageProvider,
|
||||
]
|
||||
const allPrefixes = Utils.Dedup(
|
||||
prefixes ?? [].concat(...sources.map((s) => s.defaultKeyPrefixes))
|
||||
)
|
||||
for (const prefix of allPrefixes) {
|
||||
for (const k in tags) {
|
||||
if (!tags[k]) {
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ export default class PanoramaxImageProvider extends ImageProvider {
|
|||
lat: number
|
||||
}
|
||||
): BaseUIElement {
|
||||
const host = ("https://" + new URL(img.url).host)
|
||||
const host = "https://" + new URL(img.url).host
|
||||
const p = new Panoramax(host)
|
||||
return new Link(
|
||||
new SvelteUIElement(Panoramax_bw),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue