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

89 lines
3.3 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">
<agm-map
2018-11-27 00:14:58 +08:00
#map
2017-07-24 04:36:53 +08:00
[style.width.px]="mapDimension.width"
[style.height.px]="mapDimension.height"
[fitBounds]="true">
2018-11-27 00:14:58 +08:00
<ng-container *ngIf="map.zoom > 11">
<agm-polyline *ngFor="let path of paths"
strokeColor="#007bff"
strokeOpacity="0.8"
strokeWeight="6">
<agm-polyline-point
*ngFor="let point of path"
[latitude]="point.latitude" [longitude]="point.longitude">
</agm-polyline-point>
</agm-polyline>
</ng-container>
<ng-container *ngIf="map.zoom <= 11">
<agm-polyline *ngFor="let path of pathOutlines"
strokeColor="#007bff"
strokeOpacity="0.8"
strokeWeight="6">
<agm-polyline-point
*ngFor="let point of path"
[latitude]="point.latitude" [longitude]="point.longitude">
</agm-polyline-point>
</agm-polyline>
</ng-container>
2018-11-26 07:26:29 +08:00
<agm-marker
*ngFor="let path of paths"
[latitude]="path[0].latitude"
[longitude]="path[0].longitude"
2018-11-27 00:14:58 +08:00
iconUrl="https://cdn.mapmarker.io/api/v1/fa?size=32&icon=fa-map-marker-alt&color=%23006fe6"
2018-11-26 07:26:29 +08:00
[agmFitBounds]="true">
</agm-marker>
2017-07-24 04:36:53 +08:00
<agm-marker
*ngFor="let photo of mapPhotos"
[latitude]="photo.latitude"
[longitude]="photo.longitude"
2018-11-02 17:40:09 +08:00
[iconUrl]="photo.iconUrl | fixOrientation:photo.orientation | async"
(markerClick)="loadPreview(photo)"
[agmFitBounds]="true">
2017-07-24 04:36:53 +08:00
<agm-info-window>
<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"
[style.width.px]="photo.preview.width"
[style.height.px]="photo.preview.height"
*ngIf="!photo.preview.thumbnail.Src">
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>
</agm-info-window>
</agm-marker>
</agm-map>
</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"></span>
</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"></span>
</span>
2017-07-24 04:36:53 +08:00
<span>
2018-05-14 04:59:57 +08:00
<span class="oi oi-x highlight" (click)="hide()" title="close"></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>