@aguacerowx/mapsgl 0.0.46 → 0.0.47
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/basis/basis_transcoder.js +24 -0
- package/basis/basis_transcoder.wasm +0 -0
- package/index.js +3 -1
- package/package.json +3 -2
- package/src/NwsWatchesWarningsOverlay.js +7 -3
- package/src/SatelliteShaderManager.js +2 -1
- package/src/WeatherLayerManager.js +1540 -1536
- package/src/defaultBasisBaseUrl.js +14 -0
- package/src/nwsAlertsSupport.js +1156 -1111
- package/src/nwsWarningCustomizationKey.gen.js +3 -6
- package/src/satelliteKtxWorker.js +7 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import pkg from '../package.json' with { type: 'json' };
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* jsDelivr serves the `basis/` folder from the published npm package (no `public/basis/` copy).
|
|
5
|
+
* Use when you consume `@aguacerowx/mapsgl` from the registry and do not host transcoder assets yourself.
|
|
6
|
+
*/
|
|
7
|
+
export const JSDELIVR_BASIS_BASE_URL = `https://cdn.jsdelivr.net/npm/@aguacerowx/mapsgl@${pkg.version}/basis/`;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Default: resolve `mapsgl/basis/` relative to this module. In Vite production builds this becomes
|
|
11
|
+
* your app origin `/basis/`, so place copies under `public/basis/` (or sync from `node_modules/@aguacerowx/mapsgl/basis`).
|
|
12
|
+
* For CDN-only, pass {@link JSDELIVR_BASIS_BASE_URL} as `WeatherLayerManager({ basisBaseUrl: ... })`.
|
|
13
|
+
*/
|
|
14
|
+
export const DEFAULT_BASIS_BASE_URL = new URL(/* @vite-ignore */ '../basis/', import.meta.url).href;
|