1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

adding map icon pop

This commit is contained in:
Patrik J. Braun 2021-05-04 23:39:55 +02:00
parent a8d636776b
commit d9022d636f

View File

@ -255,6 +255,7 @@ export class GalleryMapLightboxComponent implements OnChanges {
// Setting photo icon
if (Config.Client.Map.useImageMarkers === true) {
mkr.on('add', () => {
mkr.off('add');
const iconTh = this.thumbnailService.getIcon(new MediaIcon(p));
this.thumbnailsOnLoad.push(iconTh);
iconTh.Visible = true;
@ -265,6 +266,14 @@ export class GalleryMapLightboxComponent implements OnChanges {
className: 'photo-icon'
}));
mkr.options.alt = p.name;
mkr.on('mouseover', () => {
mkr.getIcon().options.iconSize = [this.usedIconSize.x * 1.5, this.usedIconSize.y * 1.5];
mkr.setIcon(mkr.getIcon());
});
mkr.on('mouseout', () => {
mkr.getIcon().options.iconSize = this.usedIconSize;
mkr.setIcon(mkr.getIcon());
});
};
if (iconTh.Available === true) {
setIcon();