updating api formats

This commit is contained in:
2023-09-16 22:39:02 -04:00
parent 7d9d32558f
commit 4a3225c3f9
23 changed files with 522 additions and 79 deletions

View File

@@ -118,7 +118,15 @@ export default function MapTiles() {
position={[airport.point.y, airport.point.x]}
icon={icon(airport)}
eventHandlers={{
click: () => handleOpen(airport)
click: () => {
mapEvents.eachLayer((l) => {
if (l.getTooltip() && l.isTooltipOpen()) {
console.log('l', l);
l.closeTooltip();
}
});
handleOpen(airport);
}
}}
>
{!isOpen && (