forked from MapComplete/MapComplete
Add Mapillary image load support, close #136
This commit is contained in:
parent
5e869479c1
commit
6a2b3d82de
6 changed files with 166 additions and 63 deletions
|
@ -10,7 +10,7 @@ export class ImgurImage extends UIElement {
|
|||
/***
|
||||
* Dictionary from url to alreayd known license info
|
||||
*/
|
||||
static allLicenseInfos: any = {};
|
||||
private static allLicenseInfos: any = {};
|
||||
private readonly _imageMeta: UIEventSource<LicenseInfo>;
|
||||
private readonly _imageLocation: string;
|
||||
|
||||
|
@ -33,7 +33,7 @@ export class ImgurImage extends UIElement {
|
|||
}
|
||||
|
||||
InnerRender(): string {
|
||||
const image = "<img src='" + this._imageLocation + "' " + "alt='' >";
|
||||
const image = `<img src='${this._imageLocation}' alt='' >`;
|
||||
|
||||
if(this._imageMeta.data === null){
|
||||
return image;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue