forked from MapComplete/MapComplete
Add support for mapillary api v4, fixes #364
This commit is contained in:
parent
5d81e7d792
commit
c8eacaa409
9 changed files with 117 additions and 63 deletions
|
@ -100,7 +100,7 @@ export class ImageSearcher extends UIEventSource<{ key: string, url: string }[]>
|
|||
|
||||
public static construct(tags: UIEventSource<any>, imagePrefix = "image", loadSpecial = true): ImageSearcher {
|
||||
const key = tags.data["id"] + " " + imagePrefix + loadSpecial;
|
||||
if (ImageSearcher._cache.has(key)) {
|
||||
if (tags.data["id"] !== undefined && ImageSearcher._cache.has(key)) {
|
||||
return ImageSearcher._cache.get(key)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue