Align legacy map first city click behavior
This commit is contained in:
+8
-1
@@ -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';
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
0 1px #ffffff88,
|
||||
0 -1px #ffffff88;
|
||||
|
||||
pointer-events: none;
|
||||
pointer-events: auto;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* убираем треугольный «хвостик» */
|
||||
|
||||
Reference in New Issue
Block a user