mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-04-26 01:24:59 +02:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user