@aguacerowx/mapsgl 0.0.53 → 0.0.55
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 +32 -31
- package/src/NexradWeatherController.js +520 -510
- package/src/NwsWatchesWarningsOverlay.js +66 -11
- package/src/WeatherLayerManager.js +14 -1
- package/src/nexrad/loadNexradSites.ts +85 -7
- package/src/nexrad/nexradArchiveCache.ts +286 -66
- package/src/nexrad/nexradArchiveDiag.ts +26 -0
- package/src/nexrad/nexradLevel3Products.ts +581 -581
- package/src/nexrad/nexradMapboxFrameOpts.bundled.js +3 -2
- package/src/nexrad/nexradMapboxFrameOpts.ts +3 -2
- package/src/nexrad/nexradSitesDefault.json +1700 -0
- package/src/nexrad/radarArchiveCore.bundled.js +2807 -42
- package/src/nexrad/radarArchiveCore.ts +149 -30
- package/src/nexrad/radarDecode.worker.bundled.js +130 -126
- package/src/nexrad/radarDecode.worker.ts +13 -215
- package/src/nexrad/radarDecodeSlot.ts +195 -0
- package/src/nwsAlertsFetchSpec.js +114 -0
- package/src/nwsAlertsSupport.js +28 -0
- package/src/nwsSdkConstants.js +8 -0
|
@@ -221,7 +221,8 @@ function nexradLevel3S3ProductForSiteTilt(siteId, radarVariable, tilt) {
|
|
|
221
221
|
return products[idx];
|
|
222
222
|
}
|
|
223
223
|
function mapboxFrameUploadOptionsForNexradState(state) {
|
|
224
|
-
if (!state
|
|
224
|
+
if (!state) return { geometryLayoutKey: "canonical" };
|
|
225
|
+
if (state.nexradDataSource !== "level3") return { geometryLayoutKey: "canonical" };
|
|
225
226
|
const site = state.nexradSite;
|
|
226
227
|
const radarVar = (state.nexradProduct || "REF").toUpperCase();
|
|
227
228
|
if (nexradLevel3UsesTiltIndexedS3Products(radarVar) && site) {
|
|
@@ -235,7 +236,7 @@ function mapboxFrameUploadOptionsForNexradState(state) {
|
|
|
235
236
|
const mnemonic = nexradLevel3S3VelocityProductForSiteTilt(site, tilt);
|
|
236
237
|
return { geometryLayoutKey: `${site}|${radarVar}|${mnemonic}` };
|
|
237
238
|
}
|
|
238
|
-
return {
|
|
239
|
+
return { geometryLayoutKey: "canonical" };
|
|
239
240
|
}
|
|
240
241
|
export {
|
|
241
242
|
mapboxFrameUploadOptionsForNexradState,
|
|
@@ -104,7 +104,8 @@ type NexradStateForMapbox = {
|
|
|
104
104
|
export function mapboxFrameUploadOptionsForNexradState(
|
|
105
105
|
state: NexradStateForMapbox | null | undefined,
|
|
106
106
|
): MapboxRadarFrameUploadOptions | undefined {
|
|
107
|
-
if (!state
|
|
107
|
+
if (!state) return { geometryLayoutKey: 'canonical' };
|
|
108
|
+
if (state.nexradDataSource !== 'level3') return { geometryLayoutKey: 'canonical' };
|
|
108
109
|
const site = state.nexradSite;
|
|
109
110
|
const radarVar = (state.nexradProduct || 'REF').toUpperCase();
|
|
110
111
|
|
|
@@ -121,5 +122,5 @@ export function mapboxFrameUploadOptionsForNexradState(
|
|
|
121
122
|
return { geometryLayoutKey: `${site}|${radarVar}|${mnemonic}` };
|
|
122
123
|
}
|
|
123
124
|
|
|
124
|
-
return {
|
|
125
|
+
return { geometryLayoutKey: 'canonical' };
|
|
125
126
|
}
|