1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/frontend/app/gallery/map/lightbox/lightbox.map.gallery.component.html

76 lines
2.8 KiB
HTML
Raw Normal View History

2017-02-06 00:27:58 +08:00
<div [hidden]="!visible" #root>
2017-07-24 04:36:53 +08:00
<div class="lightbox"
[style.width.px]="lightboxDimension.width"
[style.height.px]="lightboxDimension.height"
[style.top.px]="lightboxDimension.top"
[style.left.px]="lightboxDimension.left"
[style.opacity]="opacity">
<yaga-map #yagaMap
[style.width.px]="mapDimension.width"
[style.height.px]="mapDimension.height">
<yaga-polyline *ngFor="let path of paths"
[latLngs]="path">
</yaga-polyline>
<yaga-marker
2018-11-26 07:26:29 +08:00
*ngFor="let path of paths"
[lat]="path[0].lat"
[lng]="path[1].lng">
</yaga-marker>
<yaga-marker
2017-07-24 04:36:53 +08:00
*ngFor="let photo of mapPhotos"
[lat]="photo.lat"
[lng]="photo.lng">
<yaga-icon
*ngIf="photo.iconUrl"
[iconUrl]="photo.iconUrl"
[iconSize]="yagaMap.zoom < 15 ? smallIconSize : iconSize"
></yaga-icon>
<yaga-popup
(open)="loadPreview(photo)"
[minWidth]="photo.preview.width">
2017-07-24 04:36:53 +08:00
<img *ngIf="photo.preview.thumbnail.Src"
[style.width.px]="photo.preview.width"
[style.height.px]="photo.preview.height"
2018-11-02 17:40:09 +08:00
[src]="photo.preview.thumbnail.Src | fixOrientation:photo.orientation | async">
2017-07-24 04:36:53 +08:00
<div class="preview-loading"
*ngIf="!photo.preview.thumbnail.Src"
2017-07-24 04:36:53 +08:00
[style.width.px]="photo.preview.width"
[style.height.px]="photo.preview.height">
2018-05-14 04:59:57 +08:00
<span class="oi"
[ngClass]="photo.preview.thumbnail.Error ? 'oi-warning' : 'oi-picture'"
2017-07-24 04:36:53 +08:00
aria-hidden="true">
</span>
</div>
</yaga-popup>
</yaga-marker>
<yaga-attribution-control
2018-12-08 18:28:56 +08:00
prefix=""
[attributions]="mapService.Attributions">
</yaga-attribution-control>
<yaga-tile-layer [url]="mapService.MapLayer"></yaga-tile-layer>
</yaga-map>
2017-07-24 04:36:53 +08:00
</div>
2017-02-06 00:27:58 +08:00
2018-05-28 00:04:35 +08:00
<div id="controllers-container" *ngIf="controllersVisible">
2017-07-24 04:36:53 +08:00
<div id="controls">
2017-02-06 00:27:58 +08:00
<span>
2018-05-14 04:59:57 +08:00
<span class="oi oi-fullscreen-exit highlight"
2017-02-06 00:27:58 +08:00
*ngIf="fullScreenService.isFullScreenEnabled()"
(click)="fullScreenService.exitFullScreen()" title="toggle fullscreen, key: f" i18n-title></span>
2017-02-06 00:27:58 +08:00
</span>
2017-07-24 04:36:53 +08:00
<span>
2018-05-14 04:59:57 +08:00
<span class="oi oi-fullscreen-enter highlight"
2017-02-06 00:27:58 +08:00
*ngIf="!fullScreenService.isFullScreenEnabled()"
(click)="fullScreenService.showFullScreen(root)" title="toggle fullscreen, key: f" i18n-title></span>
2017-02-06 00:27:58 +08:00
</span>
2017-07-24 04:36:53 +08:00
<span>
<span class="oi oi-x highlight" (click)="hide()" title="close, key: Escape" i18n-title></span>
2017-02-06 00:27:58 +08:00
</span>
</div>
2017-07-24 04:36:53 +08:00
</div>
2017-02-06 00:27:58 +08:00
</div>