diff --git a/frontend/app/gallery/map/lightbox/lightbox.map.gallery.component.html b/frontend/app/gallery/map/lightbox/lightbox.map.gallery.component.html
index 5bee664b..9a9fcac0 100644
--- a/frontend/app/gallery/map/lightbox/lightbox.map.gallery.component.html
+++ b/frontend/app/gallery/map/lightbox/lightbox.map.gallery.component.html
@@ -1,6 +1,5 @@
-
{
this.lightboxDimension = {
@@ -66,6 +64,7 @@ export class GalleryMapLightboxComponent implements OnChanges {
width: this.getScreenWidth(),
height: this.getScreenHeight()
};
+ this.showImages();
}, 0);
}
@@ -129,11 +128,13 @@ export class GalleryMapLightboxComponent implements OnChanges {
}
}
+
public loadPreview(mp: MapPhoto) {
mp.preview.thumbnail.load();
}
hideImages() {
+ this.mapCenter = {longitude: 0, latitude: 0};
this.mapPhotos.forEach((mp) => {
mp.iconThumbnail.destroy();
mp.preview.thumbnail.destroy();