forked from hpi-sam/digital-fuesim-manv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexercise-map.component.html
59 lines (58 loc) · 1.77 KB
/
exercise-map.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!-- We want keyboard events to go to the OpenLayers map, not the container -> tabindex="-1" -->
<div
#openLayersContainer
class="h-100 w-100 position-relative"
tabindex="-1"
data-cy="openLayersContainer"
>
<app-display-messages *ngIf="fullscreenEnabled"></app-display-messages>
<div
class="position-absolute btn-group-vertical"
style="z-index: 10"
(click)="$event.stopPropagation()"
>
<button
(click)="olMapManager?.changeZoom('zoomIn')"
class="btn btn-sm btn-light"
title="Vergrößern"
>
<i class="bi-zoom-in"></i>
</button>
<button
(click)="olMapManager?.changeZoom('zoomOut')"
class="btn btn-sm btn-light"
title="Verkleinern"
>
<i class="bi-zoom-out"></i>
</button>
<button
*ngIf="
(currentRole$ | async) !== 'participant' &&
(restrictedToViewport$ | async) === undefined
"
(click)="olMapManager?.tryToFitViewForOverview()"
class="btn btn-sm btn-light"
title="Alle Ansichten anzeigen"
>
<i class="bi-aspect-ratio"></i>
</button>
<button
(click)="toggleFullscreen()"
class="btn btn-sm btn-light"
title="Vollbildmodus"
>
<i
[class.bi-fullscreen]="!fullscreenEnabled"
[class.bi-fullscreen-exit]="fullscreenEnabled"
></i>
</button>
</div>
</div>
<!-- position-relative because openLayers deals with the positioning -->
<div
#popoverContainer
class="popover position-relative"
style="max-width: none"
>
<ng-container #popoverContent></ng-container>
</div>