@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.
@@ -221,7 +221,8 @@ function nexradLevel3S3ProductForSiteTilt(siteId, radarVariable, tilt) {
221
221
  return products[idx];
222
222
  }
223
223
  function mapboxFrameUploadOptionsForNexradState(state) {
224
- if (!state || state.nexradDataSource !== "level3") return void 0;
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 { geometryCacheKeysRayBoundaries: true };
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 || state.nexradDataSource !== 'level3') return undefined;
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 { geometryCacheKeysRayBoundaries: true };
125
+ return { geometryLayoutKey: 'canonical' };
125
126
  }