Align legacy map first city click behavior

This commit is contained in:
2026-04-30 18:54:37 +03:00
parent e33baad901
commit 7fa91ca4b3
2 changed files with 10 additions and 2 deletions
@@ -150,13 +150,20 @@ export class FlightsMapBodyComponent implements OnInit, AfterViewInit {
{
icon: markerBlueSmall,
title: city.code,
autoPanOnFocus: false,
}
)
.on('click', ()=> this.handleMarkerClick(city.code))
.bindTooltip(city.name, {
permanent : true,
direction : 'top',
className : 'city-label'
className : 'city-label',
interactive: true,
});
marker.getTooltip()?.on('click', (event: L.LeafletMouseEvent) => {
L.DomEvent.stop(event);
this.handleMarkerClick(city.code);
});
const countryType: CountryType = city.country_code === 'RU' ? 'ru' : 'other';
+2 -1
View File
@@ -17,7 +17,8 @@
0 1px #ffffff88,
0 -1px #ffffff88;
pointer-events: none;
pointer-events: auto;
cursor: pointer;
}
/* убираем треугольный «хвостик» */