47 lines
1.3 KiB
HTML
47 lines
1.3 KiB
HTML
<div class="city-map">
|
|
<div #map class="city-map__canvas"></div>
|
|
|
|
<div class="city-map__hud">
|
|
@if (!embedded() && !fullscreen()) {
|
|
<button
|
|
class="city-map__chip"
|
|
type="button"
|
|
[attr.aria-label]="'Показать центр: ' + city.name"
|
|
(click)="focusCity()"
|
|
>
|
|
<app-icon name="pin" [size]="18" />
|
|
<span>{{ city.name }}</span>
|
|
</button>
|
|
}
|
|
|
|
<div class="city-map__tools">
|
|
@if (embedded()) {
|
|
<button
|
|
class="city-map__locate"
|
|
type="button"
|
|
[attr.aria-label]="fullscreen() ? 'Свернуть карту' : 'На весь экран'"
|
|
(click)="toggleFullscreen()"
|
|
>
|
|
<app-icon [name]="fullscreen() ? 'collapse' : 'expand'" [size]="22" />
|
|
</button>
|
|
}
|
|
|
|
<button
|
|
class="city-map__locate"
|
|
type="button"
|
|
[class.city-map__locate--active]="following()"
|
|
[attr.aria-label]="following() ? 'Остановить навигацию' : 'Моя геопозиция'"
|
|
(click)="locate()"
|
|
>
|
|
<app-icon name="my-location" [size]="22" />
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
@if (selected(); as landmark) {
|
|
<div class="city-map__sheet">
|
|
<app-map-item-sheet [landmark]="landmark" />
|
|
</div>
|
|
}
|
|
</div>
|