Add Mapillary image load support, close #136

This commit is contained in:
Pieter Vander Vennet 2020-10-17 00:37:45 +02:00
parent 5e869479c1
commit 6a2b3d82de
6 changed files with 166 additions and 63 deletions

View file

@ -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;