mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-10 11:10:35 +02:00
adding map icon pop
This commit is contained in:
parent
a8d636776b
commit
d9022d636f
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user