message: improving map: only loading map icon if visible
diff: @@ -254,6 +254,7 @@ export class GalleryMapLightboxComponent implements OnChanges {
  // Setting photo icon
  if (Config.Client.Map.useImageMarkers === true) {
  + mkr.on('add', () => {
  const iconTh = this.thumbnailService.getIcon(new MediaIcon(p));
  this.thumbnailsOnLoad.push(iconTh);
  iconTh.Visible = true;
  @@ -264,12 +265,13 @@ export class GalleryMapLightboxComponent implements OnChanges {
  }));
  mkr.options.alt = p.name;
  };
  -
  if (iconTh.Available === true) {
  setIcon();
  } else {
  iconTh.OnLoad = setIcon;
  }
  + });
  +
  }
  });
  if (this.gpxFiles) {
  