@aguacerowx/mapsgl 0.0.43 → 0.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -308,6 +308,23 @@ export class NwsWatchesWarningsOverlay {
|
|
|
308
308
|
: timeMode.timelineUnix;
|
|
309
309
|
const useOnsetWindow = this._nwsAlertSettings.activeOnlyRealtime === true;
|
|
310
310
|
|
|
311
|
+
/**
|
|
312
|
+
* Weather-timeline alignment (MRMS / satellite / NEXRAD scrubber): without a valid reference
|
|
313
|
+
* time we must not show every alert at full opacity — previously `isActive` defaulted to
|
|
314
|
+
* true for all features when `referenceUnix` was still null (race before first timestamp).
|
|
315
|
+
*/
|
|
316
|
+
if (!timeMode.useRealtime && (referenceUnix == null || !Number.isFinite(referenceUnix))) {
|
|
317
|
+
for (const f of this._workingFc.features ?? []) {
|
|
318
|
+
if (f.id == null) continue;
|
|
319
|
+
try {
|
|
320
|
+
m.setFeatureState({ source: this._sourceId, id: f.id }, { active: false });
|
|
321
|
+
} catch {
|
|
322
|
+
/* ignore */
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
return;
|
|
326
|
+
}
|
|
327
|
+
|
|
311
328
|
for (const f of this._workingFc.features ?? []) {
|
|
312
329
|
if (f.id == null) continue;
|
|
313
330
|
let isActive = true;
|