@aguacerowx/react-native 0.0.52 → 0.0.54
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/LICENSE +21 -0
- package/android/src/main/cpp/satellite_ktx_jni.cpp +6 -1
- package/android/src/main/java/com/aguacerowx/reactnative/NexradRadarLayerView.java +14 -2
- package/android/src/main/java/com/aguacerowx/reactnative/SatelliteLayer.java +121 -1
- package/android/src/main/java/com/aguacerowx/reactnative/SatelliteLayerView.java +556 -392
- package/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +77 -0
- package/index.js +1 -1
- package/ios/SatelliteLayerView.swift +517 -517
- package/ios/WeatherFrameProcessorModule.m +19 -15
- package/ios/WeatherFrameProcessorModule.swift +65 -0
- package/lib/commonjs/AguaceroContext.js +0 -4
- package/lib/commonjs/AguaceroContext.js.map +1 -1
- package/lib/commonjs/GridRenderLayer.js +62 -76
- package/lib/commonjs/GridRenderLayer.js.map +1 -1
- package/lib/commonjs/MapManager.js +110 -224
- package/lib/commonjs/MapManager.js.map +1 -1
- package/lib/commonjs/MapRegistry.js +21 -33
- package/lib/commonjs/MapRegistry.js.map +1 -1
- package/lib/commonjs/NexradRadarLayer.android.js +28 -100
- package/lib/commonjs/NexradRadarLayer.android.js.map +1 -1
- package/lib/commonjs/NexradRadarLayer.ios.js +26 -97
- package/lib/commonjs/NexradRadarLayer.ios.js.map +1 -1
- package/lib/commonjs/NexradSitesMapLayer.js +41 -61
- package/lib/commonjs/NexradSitesMapLayer.js.map +1 -1
- package/lib/commonjs/SatelliteLayer.android.js +26 -38
- package/lib/commonjs/SatelliteLayer.android.js.map +1 -1
- package/lib/commonjs/SatelliteLayer.ios.js +30 -42
- package/lib/commonjs/SatelliteLayer.ios.js.map +1 -1
- package/lib/commonjs/StyleApplicator.js +129 -175
- package/lib/commonjs/StyleApplicator.js.map +1 -1
- package/lib/commonjs/WeatherLayerManager.js +996 -1627
- package/lib/commonjs/WeatherLayerManager.js.map +1 -1
- package/lib/commonjs/aguaceroCoreDebugHooks.js +58 -130
- package/lib/commonjs/aguaceroCoreDebugHooks.js.map +1 -1
- package/lib/commonjs/aguaceroRnDebug.js +147 -287
- package/lib/commonjs/aguaceroRnDebug.js.map +1 -1
- package/lib/commonjs/cdnAuthenticatedFetch.js +104 -0
- package/lib/commonjs/cdnAuthenticatedFetch.js.map +1 -0
- package/lib/commonjs/dispatchViewManagerCommandCompat.js +51 -88
- package/lib/commonjs/dispatchViewManagerCommandCompat.js.map +1 -1
- package/lib/commonjs/gridCdnAuth.js +41 -50
- package/lib/commonjs/gridCdnAuth.js.map +1 -1
- package/lib/commonjs/index.js +51 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/nexrad/nexradAndroidController.js +851 -863
- package/lib/commonjs/nexrad/nexradAndroidController.js.map +1 -1
- package/lib/commonjs/nexrad/nexradCrossSectionSampleAtLatLon.bundled.js +62 -85
- package/lib/commonjs/nexrad/nexradCrossSectionSampleAtLatLon.bundled.js.map +1 -1
- package/lib/commonjs/nexrad/nexradDiag.js +32 -148
- package/lib/commonjs/nexrad/nexradDiag.js.map +1 -1
- package/lib/commonjs/nexrad/nexradLevel2Keys.js +261 -0
- package/lib/commonjs/nexrad/nexradLevel2Keys.js.map +1 -0
- package/lib/commonjs/nexrad/nexradLutBuild.js +64 -111
- package/lib/commonjs/nexrad/nexradLutBuild.js.map +1 -1
- package/lib/commonjs/nexrad/nexradMapboxFrameOpts.bundled.js +136 -164
- package/lib/commonjs/nexrad/nexradMapboxFrameOpts.bundled.js.map +1 -1
- package/lib/commonjs/nexrad/nexradSdkImports.js +51 -0
- package/lib/commonjs/nexrad/nexradSdkImports.js.map +1 -0
- package/lib/commonjs/nexrad/radarArchiveCore.bundled.js +2848 -4455
- package/lib/commonjs/nexrad/radarArchiveCore.bundled.js.map +1 -1
- package/lib/commonjs/nexrad/radarDecode.worker.bundled.js +445 -648
- package/lib/commonjs/nexrad/radarDecode.worker.bundled.js.map +1 -1
- package/lib/commonjs/nexrad/radarFrameGpuMatch.bundled.js +52 -68
- package/lib/commonjs/nexrad/radarFrameGpuMatch.bundled.js.map +1 -1
- package/lib/commonjs/nexradNativeCommandIds.js +24 -0
- package/lib/commonjs/nexradNativeCommandIds.js.map +1 -0
- package/lib/commonjs/nws/NwsAlertsOverlay.android.js.map +1 -1
- package/lib/commonjs/nws/NwsAlertsOverlay.ios.js.map +1 -1
- package/lib/commonjs/nws/NwsAlertsOverlay.js +3 -3
- package/lib/commonjs/nws/NwsAlertsOverlay.js.map +1 -1
- package/lib/commonjs/nws/NwsAlertsOverlay.native.js +235 -361
- package/lib/commonjs/nws/NwsAlertsOverlay.native.js.map +1 -1
- package/lib/commonjs/nws/eventSourceRnPolyfill.js +92 -146
- package/lib/commonjs/nws/eventSourceRnPolyfill.js.map +1 -1
- package/lib/commonjs/nws/nwsAndroidConstants.js +2 -8
- package/lib/commonjs/nws/nwsAndroidConstants.js.map +1 -1
- package/lib/commonjs/satellite/satelliteAndroidController.js +122 -199
- package/lib/commonjs/satellite/satelliteAndroidController.js.map +1 -1
- package/lib/commonjs/satelliteBridgeDiag.js +3 -13
- package/lib/commonjs/satelliteBridgeDiag.js.map +1 -1
- package/lib/commonjs/satelliteRnDebug.js +160 -0
- package/lib/commonjs/satelliteRnDebug.js.map +1 -0
- package/lib/module/AguaceroContext.js +2 -7
- package/lib/module/AguaceroContext.js.map +1 -1
- package/lib/module/GridRenderLayer.js +66 -80
- package/lib/module/GridRenderLayer.js.map +1 -1
- package/lib/module/MapManager.js +125 -239
- package/lib/module/MapManager.js.map +1 -1
- package/lib/module/MapRegistry.js +21 -33
- package/lib/module/MapRegistry.js.map +1 -1
- package/lib/module/NexradRadarLayer.android.js +32 -104
- package/lib/module/NexradRadarLayer.android.js.map +1 -1
- package/lib/module/NexradRadarLayer.ios.js +30 -101
- package/lib/module/NexradRadarLayer.ios.js.map +1 -1
- package/lib/module/NexradSitesMapLayer.js +44 -63
- package/lib/module/NexradSitesMapLayer.js.map +1 -1
- package/lib/module/SatelliteLayer.android.js +32 -44
- package/lib/module/SatelliteLayer.android.js.map +1 -1
- package/lib/module/SatelliteLayer.ios.js +36 -48
- package/lib/module/SatelliteLayer.ios.js.map +1 -1
- package/lib/module/StyleApplicator.js +144 -191
- package/lib/module/StyleApplicator.js.map +1 -1
- package/lib/module/WeatherLayerManager.js +1024 -1655
- package/lib/module/WeatherLayerManager.js.map +1 -1
- package/lib/module/aguaceroCoreDebugHooks.js +59 -130
- package/lib/module/aguaceroCoreDebugHooks.js.map +1 -1
- package/lib/module/aguaceroRnDebug.js +151 -291
- package/lib/module/aguaceroRnDebug.js.map +1 -1
- package/lib/module/cdnAuthenticatedFetch.js +97 -0
- package/lib/module/cdnAuthenticatedFetch.js.map +1 -0
- package/lib/module/dispatchViewManagerCommandCompat.js +52 -90
- package/lib/module/dispatchViewManagerCommandCompat.js.map +1 -1
- package/lib/module/gridCdnAuth.js +38 -50
- package/lib/module/gridCdnAuth.js.map +1 -1
- package/lib/module/index.js +9 -6
- package/lib/module/index.js.map +1 -1
- package/lib/module/nexrad/nexradAndroidController.js +865 -876
- package/lib/module/nexrad/nexradAndroidController.js.map +1 -1
- package/lib/module/nexrad/nexradCrossSectionSampleAtLatLon.bundled.js +62 -85
- package/lib/module/nexrad/nexradCrossSectionSampleAtLatLon.bundled.js.map +1 -1
- package/lib/module/nexrad/nexradDiag.js +31 -145
- package/lib/module/nexrad/nexradDiag.js.map +1 -1
- package/lib/module/nexrad/nexradLevel2Keys.js +245 -0
- package/lib/module/nexrad/nexradLevel2Keys.js.map +1 -0
- package/lib/module/nexrad/nexradLutBuild.js +64 -110
- package/lib/module/nexrad/nexradLutBuild.js.map +1 -1
- package/lib/module/nexrad/nexradMapboxFrameOpts.bundled.js +136 -163
- package/lib/module/nexrad/nexradMapboxFrameOpts.bundled.js.map +1 -1
- package/lib/module/nexrad/nexradSdkImports.js +4 -0
- package/lib/module/nexrad/nexradSdkImports.js.map +1 -0
- package/lib/module/nexrad/radarArchiveCore.bundled.js +2839 -4448
- package/lib/module/nexrad/radarArchiveCore.bundled.js.map +1 -1
- package/lib/module/nexrad/radarDecode.worker.bundled.js +445 -648
- package/lib/module/nexrad/radarDecode.worker.bundled.js.map +1 -1
- package/lib/module/nexrad/radarFrameGpuMatch.bundled.js +50 -66
- package/lib/module/nexrad/radarFrameGpuMatch.bundled.js.map +1 -1
- package/lib/module/nexradNativeCommandIds.js +18 -0
- package/lib/module/nexradNativeCommandIds.js.map +1 -0
- package/lib/module/nws/NwsAlertsOverlay.android.js +1 -1
- package/lib/module/nws/NwsAlertsOverlay.android.js.map +1 -1
- package/lib/module/nws/NwsAlertsOverlay.ios.js +1 -1
- package/lib/module/nws/NwsAlertsOverlay.ios.js.map +1 -1
- package/lib/module/nws/NwsAlertsOverlay.js +5 -5
- package/lib/module/nws/NwsAlertsOverlay.js.map +1 -1
- package/lib/module/nws/NwsAlertsOverlay.native.js +248 -373
- package/lib/module/nws/NwsAlertsOverlay.native.js.map +1 -1
- package/lib/module/nws/eventSourceRnPolyfill.js +92 -146
- package/lib/module/nws/eventSourceRnPolyfill.js.map +1 -1
- package/lib/module/nws/nwsAndroidConstants.js +2 -8
- package/lib/module/nws/nwsAndroidConstants.js.map +1 -1
- package/lib/module/satellite/satelliteAndroidController.js +125 -202
- package/lib/module/satellite/satelliteAndroidController.js.map +1 -1
- package/lib/module/satelliteBridgeDiag.js +3 -13
- package/lib/module/satelliteBridgeDiag.js.map +1 -1
- package/lib/module/satelliteRnDebug.js +148 -0
- package/lib/module/satelliteRnDebug.js.map +1 -0
- package/lib/typescript/AguaceroContext.d.ts +0 -4
- package/lib/typescript/AguaceroContext.d.ts.map +1 -1
- package/lib/typescript/GridRenderLayer.d.ts.map +1 -1
- package/lib/typescript/MapManager.d.ts +0 -12
- package/lib/typescript/MapManager.d.ts.map +1 -1
- package/lib/typescript/MapRegistry.d.ts +10 -12
- package/lib/typescript/MapRegistry.d.ts.map +1 -1
- package/lib/typescript/NexradRadarLayer.android.d.ts.map +1 -1
- package/lib/typescript/NexradRadarLayer.ios.d.ts.map +1 -1
- package/lib/typescript/NexradSitesMapLayer.d.ts +4 -10
- package/lib/typescript/NexradSitesMapLayer.d.ts.map +1 -1
- package/lib/typescript/SatelliteLayer.android.d.ts.map +1 -1
- package/lib/typescript/SatelliteLayer.ios.d.ts.map +1 -1
- package/lib/typescript/StyleApplicator.d.ts +1 -1
- package/lib/typescript/StyleApplicator.d.ts.map +1 -1
- package/lib/typescript/WeatherLayerManager.d.ts.map +1 -1
- package/lib/typescript/aguaceroCoreDebugHooks.d.ts +2 -9
- package/lib/typescript/aguaceroCoreDebugHooks.d.ts.map +1 -1
- package/lib/typescript/aguaceroRnDebug.d.ts +47 -66
- package/lib/typescript/aguaceroRnDebug.d.ts.map +1 -1
- package/lib/typescript/cdnAuthenticatedFetch.d.ts +10 -0
- package/lib/typescript/cdnAuthenticatedFetch.d.ts.map +1 -0
- package/lib/typescript/dispatchViewManagerCommandCompat.d.ts +1 -17
- package/lib/typescript/dispatchViewManagerCommandCompat.d.ts.map +1 -1
- package/lib/typescript/gridCdnAuth.d.ts +16 -21
- package/lib/typescript/gridCdnAuth.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +2 -0
- package/lib/typescript/nexrad/nexradAndroidController.d.ts +39 -89
- package/lib/typescript/nexrad/nexradAndroidController.d.ts.map +1 -1
- package/lib/typescript/nexrad/nexradCrossSectionSampleAtLatLon.bundled.d.ts +2 -1
- package/lib/typescript/nexrad/nexradCrossSectionSampleAtLatLon.bundled.d.ts.map +1 -1
- package/lib/typescript/nexrad/nexradDiag.d.ts +13 -101
- package/lib/typescript/nexrad/nexradDiag.d.ts.map +1 -1
- package/lib/typescript/nexrad/nexradLevel2Keys.d.ts +36 -0
- package/lib/typescript/nexrad/nexradLevel2Keys.d.ts.map +1 -0
- package/lib/typescript/nexrad/nexradLutBuild.d.ts +3 -10
- package/lib/typescript/nexrad/nexradLutBuild.d.ts.map +1 -1
- package/lib/typescript/nexrad/nexradMapboxFrameOpts.bundled.d.ts +4 -3
- package/lib/typescript/nexrad/nexradMapboxFrameOpts.bundled.d.ts.map +1 -1
- package/lib/typescript/nexrad/nexradSdkImports.d.ts +2 -0
- package/lib/typescript/nexrad/nexradSdkImports.d.ts.map +1 -0
- package/lib/typescript/nexrad/radarArchiveCore.bundled.d.ts +12 -7
- package/lib/typescript/nexrad/radarArchiveCore.bundled.d.ts.map +1 -1
- package/lib/typescript/nexrad/radarDecode.worker.bundled.d.ts +20 -20
- package/lib/typescript/nexrad/radarDecode.worker.bundled.d.ts.map +1 -1
- package/lib/typescript/nexrad/radarFrameGpuMatch.bundled.d.ts +4 -3
- package/lib/typescript/nexrad/radarFrameGpuMatch.bundled.d.ts.map +1 -1
- package/lib/typescript/nexradNativeCommandIds.d.ts +2 -0
- package/lib/typescript/nexradNativeCommandIds.d.ts.map +1 -0
- package/lib/typescript/nws/NwsAlertsOverlay.native.d.ts +6 -17
- package/lib/typescript/nws/NwsAlertsOverlay.native.d.ts.map +1 -1
- package/lib/typescript/nws/eventSourceRnPolyfill.d.ts +0 -3
- package/lib/typescript/nws/eventSourceRnPolyfill.d.ts.map +1 -1
- package/lib/typescript/nws/nwsAndroidConstants.d.ts +0 -5
- package/lib/typescript/nws/nwsAndroidConstants.d.ts.map +1 -1
- package/lib/typescript/satellite/satelliteAndroidController.d.ts +9 -47
- package/lib/typescript/satellite/satelliteAndroidController.d.ts.map +1 -1
- package/lib/typescript/satelliteBridgeDiag.d.ts +1 -5
- package/lib/typescript/satelliteBridgeDiag.d.ts.map +1 -1
- package/lib/typescript/satelliteRnDebug.d.ts +75 -0
- package/lib/typescript/satelliteRnDebug.d.ts.map +1 -0
- package/package.json +75 -74
- package/src/AguaceroContext.js +1 -7
- package/src/GridRenderLayer.js +1 -128
- package/src/MapManager.js +1 -277
- package/src/MapRegistry.js +1 -56
- package/src/NexradRadarLayer.android.js +1 -121
- package/src/NexradRadarLayer.ios.js +1 -115
- package/src/NexradSitesMapLayer.js +1 -75
- package/src/SatelliteLayer.android.js +1 -63
- package/src/SatelliteLayer.ios.js +1 -70
- package/src/StyleApplicator.js +1 -241
- package/src/WeatherLayerManager.js +1 -2025
- package/src/aguaceroCoreDebugHooks.js +1 -142
- package/src/aguaceroRnDebug.js +1 -335
- package/src/cdnAuthenticatedFetch.js +1 -0
- package/src/dispatchViewManagerCommandCompat.js +1 -100
- package/src/gridCdnAuth.js +1 -56
- package/src/index.js +1 -19
- package/src/nexrad/nexradAndroidController.js +1 -1078
- package/src/nexrad/nexradCrossSectionSampleAtLatLon.bundled.js +1 -91
- package/src/nexrad/nexradDiag.js +1 -150
- package/src/nexrad/nexradLevel2Keys.js +1 -0
- package/src/nexrad/nexradLutBuild.js +1 -126
- package/src/nexrad/nexradMapboxFrameOpts.bundled.js +1 -245
- package/src/nexrad/nexradSdkImports.js +1 -0
- package/src/nexrad/radarArchiveCore.bundled.js +1 -7085
- package/src/nexrad/radarDecode.worker.bundled.js +1 -813
- package/src/nexrad/radarFrameGpuMatch.bundled.js +1 -79
- package/src/nexradNativeCommandIds.js +1 -0
- package/src/nws/NwsAlertsOverlay.android.js +1 -1
- package/src/nws/NwsAlertsOverlay.ios.js +1 -1
- package/src/nws/NwsAlertsOverlay.js +1 -7
- package/src/nws/NwsAlertsOverlay.native.js +1 -463
- package/src/nws/eventSourceRnPolyfill.js +7 -193
- package/src/nws/nwsAndroidConstants.js +1 -8
- package/src/satellite/satelliteAndroidController.js +1 -245
- package/src/satelliteBridgeDiag.js +1 -15
- package/src/satelliteRnDebug.js +1 -0
- package/lib/commonjs/nexrad/nexradNativeCommandIds.js +0 -51
- package/lib/commonjs/nexrad/nexradNativeCommandIds.js.map +0 -1
- package/lib/module/nexrad/nexradNativeCommandIds.js +0 -44
- package/lib/module/nexrad/nexradNativeCommandIds.js.map +0 -1
- package/lib/typescript/nexrad/nexradNativeCommandIds.d.ts +0 -9
- package/lib/typescript/nexrad/nexradNativeCommandIds.d.ts.map +0 -1
- package/src/nexrad/nexradNativeCommandIds.js +0 -44
- /package/lib/commonjs/{nexrad/nexradSitesUs.json → nexradSitesUs.json} +0 -0
- /package/lib/module/{nexrad/nexradSitesUs.json → nexradSitesUs.json} +0 -0
- /package/src/{nexrad/nexradSitesUs.json → nexradSitesUs.json} +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = le;
|
|
7
7
|
exports.resolveNwsAndroidLayerAnchors = resolveNwsAndroidLayerAnchors;
|
|
8
8
|
require("./eventSourceRnPolyfill.js");
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -16,160 +16,92 @@ var _MapRegistry = require("../MapRegistry");
|
|
|
16
16
|
var _nwsAndroidConstants = require("./nwsAndroidConstants.js");
|
|
17
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
18
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/** Subpath imports avoid Metro/barrel init ordering where the package root can yield undefined named exports during RN startup. */
|
|
27
|
-
|
|
28
|
-
const SOURCE_ID = 'aguacero-nws-alerts-source';
|
|
29
|
-
const FILL_ID = 'aguacero-nws-alerts-fill';
|
|
30
|
-
const LINE_CASING_ID = 'aguacero-nws-alerts-line-casing';
|
|
31
|
-
const LINE_CORE_ID = 'aguacero-nws-alerts-line-core';
|
|
32
|
-
class AndroidNwsOverlay extends _NwsWatchesWarningsOverlay.NwsWatchesWarningsOverlay {
|
|
33
|
-
/**
|
|
34
|
-
* @param {object} map
|
|
35
|
-
* @param {object} options
|
|
36
|
-
* @param {(paint: object) => void} onPaint
|
|
37
|
-
*/
|
|
38
|
-
constructor(map, options, onPaint) {
|
|
39
|
-
super(map, options);
|
|
40
|
-
this._onPaint = onPaint;
|
|
19
|
+
const O = "aguacero-nws-alerts-source",
|
|
20
|
+
m = "aguacero-nws-alerts-fill",
|
|
21
|
+
h = "aguacero-nws-alerts-line-casing",
|
|
22
|
+
L = "aguacero-nws-alerts-line-core";
|
|
23
|
+
class ae extends _NwsWatchesWarningsOverlay.NwsWatchesWarningsOverlay {
|
|
24
|
+
constructor(t, a, n) {
|
|
25
|
+
super(t, a), this._onPaint = n;
|
|
41
26
|
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* @rnmapbox/maps does not support data-driven `line-dasharray` (match on `event_name`).
|
|
45
|
-
* Keep web parity for colors; dash style follows {@link NwsWatchesWarningsOverlay} default `lineDash` only on RN.
|
|
46
|
-
*/
|
|
47
27
|
_buildPaint() {
|
|
48
|
-
const
|
|
49
|
-
|
|
28
|
+
const t = super._buildPaint(),
|
|
29
|
+
a = this._nwsAlertSettings?.lineDash ?? "solid";
|
|
50
30
|
return {
|
|
51
|
-
...
|
|
52
|
-
lineDashExpr: (0, _nwsSdkConstants.buildNwsLineDasharrayLiteralExpression)(
|
|
53
|
-
fillOpacityExpr: Array.isArray(
|
|
54
|
-
lineOpacityExpr: Array.isArray(
|
|
31
|
+
...t,
|
|
32
|
+
lineDashExpr: (0, _nwsSdkConstants.buildNwsLineDasharrayLiteralExpression)(a),
|
|
33
|
+
fillOpacityExpr: Array.isArray(t.fillOpacityExpr) && t.fillOpacityExpr.length > 2 ? t.fillOpacityExpr[2] : t.fillOpacityExpr,
|
|
34
|
+
lineOpacityExpr: Array.isArray(t.lineOpacityExpr) && t.lineOpacityExpr.length > 2 ? t.lineOpacityExpr[2] : t.lineOpacityExpr
|
|
55
35
|
};
|
|
56
36
|
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* RN renders ShapeSource + layers declaratively (same ids). Only sync GeoJSON + paint; skip imperative addLayer.
|
|
60
|
-
*/
|
|
61
37
|
_ensureLayers() {
|
|
62
|
-
const
|
|
63
|
-
if (!
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
});
|
|
72
|
-
} else {
|
|
73
|
-
m.getSource(this._sourceId).setData(sourceData);
|
|
74
|
-
}
|
|
38
|
+
const t = this.map;
|
|
39
|
+
if (!t?.addSource) return;
|
|
40
|
+
const a = this._buildPaint();
|
|
41
|
+
this._onPaint && this._onPaint(a);
|
|
42
|
+
const n = (0, _nwsAlertsSupport.normalizeFeatureCollectionForMapboxGl)(this._workingFc);
|
|
43
|
+
t.getSource(this._sourceId) ? t.getSource(this._sourceId).setData(n) : t.addSource(this._sourceId, {
|
|
44
|
+
type: "geojson",
|
|
45
|
+
data: n
|
|
46
|
+
});
|
|
75
47
|
}
|
|
76
48
|
_refreshPaint() {
|
|
77
|
-
|
|
49
|
+
this._onPaint && this._onPaint(this._buildPaint());
|
|
78
50
|
}
|
|
79
51
|
_applyLayerOrder() {}
|
|
80
52
|
_syncClickHandler() {}
|
|
81
53
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
/** @type {Map<string, object>} */
|
|
91
|
-
const pendingStates = new Map();
|
|
92
|
-
let rafId = null;
|
|
93
|
-
function flush() {
|
|
94
|
-
rafId = null;
|
|
95
|
-
if (handlers.onFeatureStates) {
|
|
96
|
-
const activeIds = [];
|
|
97
|
-
for (const [fid, state] of pendingStates) {
|
|
98
|
-
if (state && state.active !== false) {
|
|
99
|
-
activeIds.push(fid);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
handlers.onFeatureStates(activeIds);
|
|
54
|
+
function ne(l) {
|
|
55
|
+
const t = new Map();
|
|
56
|
+
let a = null;
|
|
57
|
+
function n() {
|
|
58
|
+
if (a = null, l.onFeatureStates) {
|
|
59
|
+
const i = [];
|
|
60
|
+
for (const [s, p] of t) p && p.active !== !1 && i.push(s);
|
|
61
|
+
l.onFeatureStates(i);
|
|
103
62
|
}
|
|
104
63
|
}
|
|
105
64
|
return {
|
|
106
|
-
push(
|
|
107
|
-
|
|
108
|
-
if (rafId == null) {
|
|
109
|
-
rafId = requestAnimationFrame(flush);
|
|
110
|
-
}
|
|
65
|
+
push(i, s, p) {
|
|
66
|
+
t.set(i, s), a == null && (a = requestAnimationFrame(n));
|
|
111
67
|
},
|
|
112
68
|
clear() {
|
|
113
|
-
|
|
114
|
-
if (rafId != null) {
|
|
115
|
-
cancelAnimationFrame(rafId);
|
|
116
|
-
rafId = null;
|
|
117
|
-
}
|
|
118
|
-
if (handlers.onFeatureStates) {
|
|
119
|
-
handlers.onFeatureStates(null);
|
|
120
|
-
}
|
|
69
|
+
t.clear(), a != null && (cancelAnimationFrame(a), a = null), l.onFeatureStates && l.onFeatureStates(null);
|
|
121
70
|
}
|
|
122
71
|
};
|
|
123
72
|
}
|
|
124
|
-
function
|
|
125
|
-
let
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
const featureStateBatcher = createFeatureStateBatcher(handlers);
|
|
73
|
+
function ie(l) {
|
|
74
|
+
let t = !1,
|
|
75
|
+
a = !1;
|
|
76
|
+
const n = ne(l);
|
|
129
77
|
return {
|
|
130
|
-
isStyleLoaded: () =>
|
|
131
|
-
once(
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}));
|
|
136
|
-
}
|
|
78
|
+
isStyleLoaded: () => !0,
|
|
79
|
+
once(i, s) {
|
|
80
|
+
i === "style.load" && queueMicrotask(() => s({
|
|
81
|
+
target: {}
|
|
82
|
+
}));
|
|
137
83
|
},
|
|
138
84
|
__markDeclarativeLayersReady() {
|
|
139
|
-
|
|
85
|
+
a = !0;
|
|
140
86
|
},
|
|
141
|
-
addSource(
|
|
142
|
-
|
|
143
|
-
sourceAdded = true;
|
|
144
|
-
if (spec?.data) handlers.onShape(spec.data);
|
|
145
|
-
}
|
|
87
|
+
addSource(i, s) {
|
|
88
|
+
i === O && (t = !0, s?.data && l.onShape(s.data));
|
|
146
89
|
},
|
|
147
|
-
getSource(
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
setData: geojson => handlers.onShape(geojson)
|
|
90
|
+
getSource(i) {
|
|
91
|
+
return !t || i !== O ? null : {
|
|
92
|
+
setData: s => l.onShape(s)
|
|
151
93
|
};
|
|
152
94
|
},
|
|
153
95
|
addLayer() {},
|
|
154
|
-
removeLayer(
|
|
155
|
-
|
|
156
|
-
declarativeLayersReady = false;
|
|
157
|
-
featureStateBatcher.clear();
|
|
158
|
-
handlers.onLayersCleared?.();
|
|
159
|
-
}
|
|
96
|
+
removeLayer(i) {
|
|
97
|
+
[m, h, L].includes(i) && (a = !1, n.clear(), l.onLayersCleared?.());
|
|
160
98
|
},
|
|
161
|
-
removeSource(
|
|
162
|
-
|
|
163
|
-
sourceAdded = false;
|
|
164
|
-
declarativeLayersReady = false;
|
|
165
|
-
featureStateBatcher.clear();
|
|
166
|
-
handlers.onLayersCleared?.();
|
|
167
|
-
}
|
|
99
|
+
removeSource(i) {
|
|
100
|
+
i === O && (t = !1, a = !1, n.clear(), l.onLayersCleared?.());
|
|
168
101
|
},
|
|
169
|
-
getLayer(
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
id
|
|
102
|
+
getLayer(i) {
|
|
103
|
+
return a && [m, h, L].includes(i) ? {
|
|
104
|
+
id: i
|
|
173
105
|
} : null;
|
|
174
106
|
},
|
|
175
107
|
getStyle() {
|
|
@@ -182,261 +114,203 @@ function createAndroidNwsStubMap(handlers) {
|
|
|
182
114
|
on() {},
|
|
183
115
|
off() {},
|
|
184
116
|
fire() {},
|
|
185
|
-
setFeatureState(
|
|
186
|
-
const
|
|
187
|
-
|
|
188
|
-
if (
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
} catch {
|
|
192
|
-
/* ignore */
|
|
193
|
-
}
|
|
117
|
+
setFeatureState(i, s) {
|
|
118
|
+
const p = i?.source,
|
|
119
|
+
f = i?.id;
|
|
120
|
+
if (!(p !== O || f == null)) try {
|
|
121
|
+
n.push(f, s, p);
|
|
122
|
+
} catch {}
|
|
194
123
|
}
|
|
195
124
|
};
|
|
196
125
|
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
function resolveNwsAndroidLayerAnchors(state, wopt) {
|
|
204
|
-
const manualFill = Object.prototype.hasOwnProperty.call(wopt, 'fillBeforeLayerId') ? wopt.fillBeforeLayerId ?? null : null;
|
|
205
|
-
let weatherLayerId = null;
|
|
206
|
-
if (state?.isNexrad) {
|
|
207
|
-
weatherLayerId = _nwsAndroidConstants.AGUACERO_NEXRAD_MAP_LAYER_ID;
|
|
208
|
-
} else if (state?.isSatellite) {
|
|
209
|
-
weatherLayerId = _nwsAndroidConstants.AGUACERO_SATELLITE_MAP_LAYER_ID;
|
|
210
|
-
} else if (state?.isMRMS && state?.variable) {
|
|
211
|
-
weatherLayerId = 'aguacero-weather-grid-custom';
|
|
212
|
-
}
|
|
213
|
-
const fillBelowId = manualFill != null && String(manualFill) !== '' ? String(manualFill) : weatherLayerId || _NwsWatchesWarningsOverlay.NWS_DEFAULT_LINE_BEFORE_LAYER_ID;
|
|
214
|
-
const lineBelowId = wopt.lineBeforeLayerId || _NwsWatchesWarningsOverlay.NWS_DEFAULT_LINE_BEFORE_LAYER_ID;
|
|
126
|
+
function resolveNwsAndroidLayerAnchors(l, t) {
|
|
127
|
+
const a = Object.prototype.hasOwnProperty.call(t, "fillBeforeLayerId") ? t.fillBeforeLayerId ?? null : null;
|
|
128
|
+
let n = null;
|
|
129
|
+
l?.isNexrad ? n = _nwsAndroidConstants.AGUACERO_NEXRAD_MAP_LAYER_ID : l?.isSatellite ? n = _nwsAndroidConstants.AGUACERO_SATELLITE_MAP_LAYER_ID : l?.isMRMS && l?.variable && (n = "aguacero-weather-grid-custom");
|
|
130
|
+
const i = a != null && String(a) !== "" ? String(a) : n || _NwsWatchesWarningsOverlay.NWS_DEFAULT_LINE_BEFORE_LAYER_ID,
|
|
131
|
+
s = t.lineBeforeLayerId || _NwsWatchesWarningsOverlay.NWS_DEFAULT_LINE_BEFORE_LAYER_ID;
|
|
215
132
|
return {
|
|
216
|
-
weatherLayerId,
|
|
217
|
-
fillBelowId,
|
|
218
|
-
lineBelowId
|
|
133
|
+
weatherLayerId: n,
|
|
134
|
+
fillBelowId: i,
|
|
135
|
+
lineBelowId: s
|
|
219
136
|
};
|
|
220
137
|
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
* @param {object} props.watchesWarnings - merged options ({ enabled, alertsBaseUrl, nwsAlertSettings, ... })
|
|
226
|
-
* @param {(payload: object) => void} [props.onNwsAlertClick]
|
|
227
|
-
*/
|
|
228
|
-
function NwsAlertsOverlay({
|
|
229
|
-
core,
|
|
230
|
-
watchesWarnings,
|
|
231
|
-
onNwsAlertClick
|
|
138
|
+
function le({
|
|
139
|
+
core: l,
|
|
140
|
+
watchesWarnings: t,
|
|
141
|
+
onNwsAlertClick: a
|
|
232
142
|
}) {
|
|
233
|
-
const [
|
|
143
|
+
const [n, i] = (0, _react.useState)(() => l?.state);
|
|
234
144
|
(0, _react.useEffect)(() => {
|
|
235
|
-
if (!
|
|
236
|
-
const
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
overlayRef.current = overlay;
|
|
268
|
-
return () => {
|
|
269
|
-
overlay.destroy();
|
|
270
|
-
overlayRef.current = null;
|
|
271
|
-
stubRef.current = null;
|
|
272
|
-
};
|
|
273
|
-
}, [getMapboxMapView]);
|
|
274
|
-
(0, _react.useEffect)(() => {
|
|
275
|
-
const ov = overlayRef.current;
|
|
276
|
-
if (!ov) return;
|
|
277
|
-
const wopt = watchesWarnings || {};
|
|
278
|
-
const nwsAlertSettingsForOpts = {
|
|
279
|
-
...(wopt.nwsAlertSettings ?? {}),
|
|
280
|
-
...(wopt.activeOnlyRealtime !== undefined ? {
|
|
281
|
-
activeOnlyRealtime: wopt.activeOnlyRealtime
|
|
282
|
-
} : {})
|
|
145
|
+
if (!l) return;
|
|
146
|
+
const o = e => i(e);
|
|
147
|
+
return l.on("state:change", o), () => l.off("state:change", o);
|
|
148
|
+
}, [l]);
|
|
149
|
+
const [s, p] = (0, _react.useState)({
|
|
150
|
+
type: "FeatureCollection",
|
|
151
|
+
features: []
|
|
152
|
+
}),
|
|
153
|
+
[f, R] = (0, _react.useState)(null),
|
|
154
|
+
[D, C] = (0, _react.useState)(null),
|
|
155
|
+
_ = (0, _react.useRef)(null),
|
|
156
|
+
F = (0, _react.useRef)(null),
|
|
157
|
+
B = (0, _react.useRef)(t),
|
|
158
|
+
T = (0, _react.useRef)("");
|
|
159
|
+
B.current = t;
|
|
160
|
+
const N = (0, _react.useCallback)(() => _MapRegistry.mapRegistry.getMap(), []),
|
|
161
|
+
w = (0, _react.useMemo)(() => resolveNwsAndroidLayerAnchors(n, t || {}), [n, t]);
|
|
162
|
+
if ((0, _react.useEffect)(() => {
|
|
163
|
+
const o = r => R(r),
|
|
164
|
+
e = ie({
|
|
165
|
+
getMapboxMapView: N,
|
|
166
|
+
onShape: r => p(r),
|
|
167
|
+
onFeatureStates: r => C(r),
|
|
168
|
+
onLayersCleared: () => {
|
|
169
|
+
R(null), C(null);
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
F.current = e;
|
|
173
|
+
const u = B.current || {},
|
|
174
|
+
c = new ae(e, u, o);
|
|
175
|
+
return _.current = c, () => {
|
|
176
|
+
c.destroy(), _.current = null, F.current = null;
|
|
283
177
|
};
|
|
284
|
-
|
|
285
|
-
const
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
weatherLayerId,
|
|
308
|
-
fillBeforeLayerId,
|
|
309
|
-
lineBeforeLayerId: wopt.lineBeforeLayerId,
|
|
310
|
-
nwsAlertSettings: nwsAlertSettingsForOpts
|
|
178
|
+
}, [N]), (0, _react.useEffect)(() => {
|
|
179
|
+
const o = _.current;
|
|
180
|
+
if (!o) return;
|
|
181
|
+
const e = t || {},
|
|
182
|
+
u = {
|
|
183
|
+
...(e.nwsAlertSettings ?? {}),
|
|
184
|
+
...(e.activeOnlyRealtime !== void 0 ? {
|
|
185
|
+
activeOnlyRealtime: e.activeOnlyRealtime
|
|
186
|
+
} : {})
|
|
187
|
+
},
|
|
188
|
+
c = w.weatherLayerId,
|
|
189
|
+
r = Object.prototype.hasOwnProperty.call(e, "fillBeforeLayerId") ? e.fillBeforeLayerId ?? null : null,
|
|
190
|
+
y = JSON.stringify({
|
|
191
|
+
weatherLayerId: c,
|
|
192
|
+
fillBeforeLayerId: r,
|
|
193
|
+
lineBeforeLayerId: e.lineBeforeLayerId,
|
|
194
|
+
alertsBaseUrl: e.alertsBaseUrl,
|
|
195
|
+
alertInteractionEnabled: e.alertInteractionEnabled,
|
|
196
|
+
deltaDebounceMs: e.deltaDebounceMs,
|
|
197
|
+
fillOpacity: e.fillOpacity,
|
|
198
|
+
lineOpacity: e.lineOpacity,
|
|
199
|
+
lineWidth: e.lineWidth,
|
|
200
|
+
nwsAlertSettings: u
|
|
311
201
|
});
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
alertsFetchHours
|
|
202
|
+
T.current !== y && (T.current = y, o.updateOptions({
|
|
203
|
+
alertsBaseUrl: e.alertsBaseUrl,
|
|
204
|
+
alertInteractionEnabled: e.alertInteractionEnabled,
|
|
205
|
+
deltaDebounceMs: e.deltaDebounceMs,
|
|
206
|
+
fillOpacity: e.fillOpacity,
|
|
207
|
+
lineOpacity: e.lineOpacity,
|
|
208
|
+
lineWidth: e.lineWidth,
|
|
209
|
+
weatherLayerId: c,
|
|
210
|
+
fillBeforeLayerId: r,
|
|
211
|
+
lineBeforeLayerId: e.lineBeforeLayerId,
|
|
212
|
+
nwsAlertSettings: u
|
|
213
|
+
}));
|
|
214
|
+
}, [t, w.weatherLayerId]), (0, _react.useEffect)(() => {
|
|
215
|
+
const o = _.current;
|
|
216
|
+
if (!o || !n) return;
|
|
217
|
+
const e = (t || {}).enabled === !0;
|
|
218
|
+
let u = null,
|
|
219
|
+
c = null;
|
|
220
|
+
const r = n;
|
|
221
|
+
r.isSatellite ? (u = r.satelliteTimestamp == null ? null : Number(r.satelliteTimestamp), c = r.availableSatelliteTimestamps) : r.isNexrad ? (u = r.nexradTimestamp == null ? null : Number(r.nexradTimestamp), c = r.availableNexradTimestamps) : r.isMRMS && (u = r.mrmsTimestamp == null ? null : Number(r.mrmsTimestamp), c = r.availableTimestamps);
|
|
222
|
+
const y = !!(r.isSatellite || r.isNexrad || r.isMRMS),
|
|
223
|
+
E = (0, _nwsAlertsFetchSpec.computeNwsAlertsFetchHoursFromAguaceroState)(r);
|
|
224
|
+
o.syncWithMode({
|
|
225
|
+
enabled: e,
|
|
226
|
+
timelineUnix: u,
|
|
227
|
+
timelineTimes: c,
|
|
228
|
+
hasObservationTimeline: y,
|
|
229
|
+
alertsFetchHours: E
|
|
341
230
|
});
|
|
342
|
-
}, [
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
} catch {
|
|
351
|
-
/* ignore */
|
|
231
|
+
}, [n, t]), (0, _react.useLayoutEffect)(() => {
|
|
232
|
+
const o = F.current,
|
|
233
|
+
e = _.current;
|
|
234
|
+
if (!(!o || !e || !f)) {
|
|
235
|
+
o.__markDeclarativeLayersReady();
|
|
236
|
+
try {
|
|
237
|
+
e._applyTimeFilters();
|
|
238
|
+
} catch {}
|
|
352
239
|
}
|
|
353
|
-
}, [
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
if (!screenPoint) return;
|
|
368
|
-
let feats = await mapView.queryRenderedFeaturesAtPoint(screenPoint, undefined, [FILL_ID, LINE_CASING_ID, LINE_CORE_ID]);
|
|
369
|
-
if (!feats?.length && payload?.coordinates) {
|
|
370
|
-
const coord = payload.coordinates;
|
|
371
|
-
const pt = await mapView.getPointInView(coord);
|
|
372
|
-
if (pt) feats = await mapView.queryRenderedFeaturesAtPoint(pt, undefined, [FILL_ID, LINE_CASING_ID, LINE_CORE_ID]);
|
|
240
|
+
}, [f, s, n?.nexradTimestamp, n?.mrmsTimestamp, n?.satelliteTimestamp]), (0, _react.useEffect)(() => {
|
|
241
|
+
if (!a) return;
|
|
242
|
+
const o = async e => {
|
|
243
|
+
const u = B.current || {};
|
|
244
|
+
if (!u.enabled || u.alertInteractionEnabled === !1) return;
|
|
245
|
+
const c = _MapRegistry.mapRegistry.getMap();
|
|
246
|
+
if (!c?.queryRenderedFeaturesAtPoint) return;
|
|
247
|
+
let r = null;
|
|
248
|
+
if (e?.properties?.screenPointX != null && e?.properties?.screenPointY != null ? r = [e.properties.screenPointX, e.properties.screenPointY] : e?.point != null && Array.isArray(e.point) && (r = e.point), !r) return;
|
|
249
|
+
let y = await c.queryRenderedFeaturesAtPoint(r, void 0, [m, h, L]);
|
|
250
|
+
if (!y?.length && e?.coordinates) {
|
|
251
|
+
const S = e.coordinates,
|
|
252
|
+
q = await c.getPointInView(S);
|
|
253
|
+
q && (y = await c.queryRenderedFeaturesAtPoint(q, void 0, [m, h, L]));
|
|
373
254
|
}
|
|
374
|
-
const
|
|
375
|
-
if (
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
feature: hit
|
|
255
|
+
const E = y?.find(S => [m, h, L].includes(S?.layer?.id));
|
|
256
|
+
if (E?.properties) try {
|
|
257
|
+
const S = (0, _nwsAlertsSupport.buildAlertClickPayload)(E);
|
|
258
|
+
a({
|
|
259
|
+
...S,
|
|
260
|
+
feature: E
|
|
381
261
|
});
|
|
382
|
-
} catch {
|
|
383
|
-
/* ignore */
|
|
384
|
-
}
|
|
262
|
+
} catch {}
|
|
385
263
|
};
|
|
386
|
-
_MapRegistry.mapRegistry.addPressListener(
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
lineJoin,
|
|
419
|
-
lineSortKey
|
|
420
|
-
};
|
|
421
|
-
const activeFilter = activeIds ? activeIds.length > 0 ? ['in', ['id'], ['literal', activeIds]] : ['==', ['id'], -1] : ['==', ['id'], -1];
|
|
264
|
+
return _MapRegistry.mapRegistry.addPressListener(o), () => _MapRegistry.mapRegistry.removePressListener(o);
|
|
265
|
+
}, [a]), !f) return null;
|
|
266
|
+
const d = f,
|
|
267
|
+
M = d.lineLayout ?? {},
|
|
268
|
+
W = M["line-cap"] ?? "round",
|
|
269
|
+
k = M["line-join"] ?? "round",
|
|
270
|
+
U = M["line-sort-key"] ?? ["coalesce", ["get", "_nws_render_priority"], 0],
|
|
271
|
+
j = ["coalesce", ["get", "_nws_render_priority"], 0],
|
|
272
|
+
G = {
|
|
273
|
+
fillColor: d.fillColorExpr,
|
|
274
|
+
fillOpacity: d.fillOpacityExpr,
|
|
275
|
+
fillSortKey: j
|
|
276
|
+
},
|
|
277
|
+
H = {
|
|
278
|
+
lineColor: d.dualLine.casingColor,
|
|
279
|
+
lineWidth: d.dualLine.casingWidth,
|
|
280
|
+
lineOpacity: d.lineOpacityExpr,
|
|
281
|
+
lineDasharray: d.lineDashExpr,
|
|
282
|
+
lineCap: W,
|
|
283
|
+
lineJoin: k,
|
|
284
|
+
lineSortKey: U
|
|
285
|
+
},
|
|
286
|
+
J = {
|
|
287
|
+
lineColor: d.dualLine.coreColor,
|
|
288
|
+
lineWidth: d.dualLine.coreWidth,
|
|
289
|
+
lineOpacity: d.lineOpacityExpr,
|
|
290
|
+
lineDasharray: d.lineDashExpr,
|
|
291
|
+
lineCap: W,
|
|
292
|
+
lineJoin: k,
|
|
293
|
+
lineSortKey: U
|
|
294
|
+
},
|
|
295
|
+
v = D ? D.length > 0 ? ["in", ["id"], ["literal", D]] : ["==", ["id"], -1] : ["==", ["id"], -1];
|
|
422
296
|
return /*#__PURE__*/_react.default.createElement(_maps.default.ShapeSource, {
|
|
423
|
-
id:
|
|
424
|
-
shape:
|
|
297
|
+
id: O,
|
|
298
|
+
shape: s
|
|
425
299
|
}, /*#__PURE__*/_react.default.createElement(_maps.default.FillLayer, {
|
|
426
|
-
id:
|
|
427
|
-
belowLayerID:
|
|
428
|
-
style:
|
|
429
|
-
filter:
|
|
300
|
+
id: m,
|
|
301
|
+
belowLayerID: w.fillBelowId,
|
|
302
|
+
style: G,
|
|
303
|
+
filter: v
|
|
430
304
|
}), /*#__PURE__*/_react.default.createElement(_maps.default.LineLayer, {
|
|
431
|
-
id:
|
|
432
|
-
belowLayerID:
|
|
433
|
-
style:
|
|
434
|
-
filter:
|
|
305
|
+
id: h,
|
|
306
|
+
belowLayerID: w.lineBelowId,
|
|
307
|
+
style: H,
|
|
308
|
+
filter: v
|
|
435
309
|
}), /*#__PURE__*/_react.default.createElement(_maps.default.LineLayer, {
|
|
436
|
-
id:
|
|
437
|
-
belowLayerID:
|
|
438
|
-
style:
|
|
439
|
-
filter:
|
|
310
|
+
id: L,
|
|
311
|
+
belowLayerID: w.lineBelowId,
|
|
312
|
+
style: J,
|
|
313
|
+
filter: v
|
|
440
314
|
}));
|
|
441
315
|
}
|
|
442
316
|
//# sourceMappingURL=NwsAlertsOverlay.native.js.map
|