feat(map): show hourglass on aviation layer while fetching positions (#2013)

Wire setLayerLoading/setLayerReady into fetchViewportAircraft so the
flights toggle gives visible feedback during the API call: the plane
icon swaps to an hourglass and the label pulses yellow while in flight,
resolving to green-bordered active state once positions arrive.

Users no longer need to guess whether data is loading or simply absent.
The indicator fires only when a real fetch starts (viewport changed),
never on cache hits or stale-response discards.
This commit is contained in:
Elie Habib
2026-03-21 21:35:01 +04:00
committed by GitHub
parent fdef684af2
commit f2dea9f3d7
2 changed files with 12 additions and 0 deletions

View File

@@ -15078,6 +15078,15 @@ a.prediction-link:hover {
animation: layer-loading 0.8s ease-in-out infinite;
}
.deckgl-layer-toggles .layer-toggle.loading .toggle-icon {
font-size: 0;
}
.deckgl-layer-toggles .layer-toggle.loading .toggle-icon::after {
content: '\23F3';
font-size: 12px;
}
.deckgl-layer-toggles .layer-toggle.has-data .toggle-label {
color: var(--green);
}