add mp with icons and update after review
This commit is contained in:
@@ -2,25 +2,40 @@
|
||||
<div #map class="city-map__canvas"></div>
|
||||
|
||||
<div class="city-map__hud">
|
||||
<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>
|
||||
@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>
|
||||
}
|
||||
|
||||
<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 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) {
|
||||
|
||||
Reference in New Issue
Block a user