@aguacerowx/mapsgl 0.0.58 → 0.0.59
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/index.js +45 -45
- package/package.json +31 -31
- package/src/GridRenderLayer.js +1387 -1387
- package/src/MapManager.js +197 -197
- package/src/NexradSitesOverlay.js +148 -148
- package/src/NexradWeatherController.js +523 -523
- package/src/SatelliteShaderManager.js +1000 -1000
- package/src/WorkerPool.js +340 -340
- package/src/defaultBasisBaseUrl.js +11 -11
- package/src/nexrad/MapboxRadarLayer.ts +783 -783
- package/src/nexrad/PreprocessedSweepParser.ts +225 -225
- package/src/nexrad/buildRadarRayGeometry.ts +97 -97
- package/src/nexrad/level3StormRelative.ts +116 -116
- package/src/nexrad/loadNexradSites.ts +119 -119
- package/src/nexrad/nexradArchiveDiag.ts +26 -26
- package/src/nexrad/nexradCrossSectionSampleAtLatLon.ts +121 -121
- package/src/nexrad/nexradMapboxFrameOpts.ts +126 -126
- package/src/nexrad/nexradSitesDefault.json +1699 -1699
- package/src/nexrad/radarArchiveCore.bundled.js +4 -2
- package/src/nexrad/radarArchiveCore.ts +1987 -1985
- package/src/nexrad/radarDecode.worker.ts +25 -25
- package/src/nexrad/radarDecodeSlot.ts +195 -195
- package/src/nexrad/radarFrameGpuMatch.ts +111 -111
- package/src/satelliteDefaultColormaps.js +37 -37
- package/src/satelliteKtxWorker.js +232 -232
- package/src/satelliteShader.js +17 -17
- package/src/style-applicator.js +112 -112
- package/src/style-layer-map.js +26 -26
|
@@ -5624,8 +5624,9 @@ function setNexradArchiveSiteOrigin(origin) {
|
|
|
5624
5624
|
}
|
|
5625
5625
|
function cloudFrontUrlWithApiKeyQuery(baseUrl) {
|
|
5626
5626
|
if (!NEXRAD_ARCHIVE_API_KEY) return baseUrl;
|
|
5627
|
+
if (/[?&]apiKey=/i.test(baseUrl)) return baseUrl;
|
|
5627
5628
|
const sep = baseUrl.includes("?") ? "&" : "?";
|
|
5628
|
-
return `${baseUrl}${sep}apiKey=${NEXRAD_ARCHIVE_API_KEY}`;
|
|
5629
|
+
return `${baseUrl}${sep}apiKey=${encodeURIComponent(NEXRAD_ARCHIVE_API_KEY)}`;
|
|
5629
5630
|
}
|
|
5630
5631
|
function level2CloudFrontFetchHeaders(range) {
|
|
5631
5632
|
const headers = {
|
|
@@ -5747,7 +5748,8 @@ function getDecodeWorkerForPriority(priority) {
|
|
|
5747
5748
|
function objectKeyToUrl(objectKey, radarSource = "level2") {
|
|
5748
5749
|
if (objectKey.startsWith("http")) return objectKey;
|
|
5749
5750
|
const baseUrl = radarSource === "level3" ? LEVEL3_BASE_URL : LEVEL2_BASE_URL;
|
|
5750
|
-
|
|
5751
|
+
const url = `${baseUrl.replace(/\/$/, "")}/${objectKey}`;
|
|
5752
|
+
return radarSource === "level2" ? cloudFrontUrlWithApiKeyQuery(url) : url;
|
|
5751
5753
|
}
|
|
5752
5754
|
var Level3Raf = class {
|
|
5753
5755
|
offset = 0;
|