1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/frontend/app/gallery/map/map.gallery.component.html
Patrik J. Braun 2ea0ea42e3 adding random photo url generator
upgrading packages
2018-10-22 00:24:17 +02:00

25 lines
695 B
HTML

<ng-template [ngIf]="mapPhotos.length>0">
<app-gallery-map-lightbox [photos]="photos"></app-gallery-map-lightbox>
<div id="map" #map>
<agm-map
[disableDefaultUI]="true"
[zoomControl]="false"
[streetViewControl]="false"
[usePanning]="false"
[draggable]="false"
[zoom]="0"
[fitBounds]="true">
<agm-marker
*ngFor="let photo of mapPhotos"
[latitude]="photo.latitude"
[longitude]="photo.longitude"
[agmFitBounds]="true">
</agm-marker>
</agm-map>
<div class="overlay" (click)="click()"
[style.margin-top.px]="-height"
[style.height.px]="height">
</div>
</div>
</ng-template>