atmosx-nwws-parser 1.0.1913 → 1.0.1914
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/dist/src/events.js +6 -6
- package/package.json +1 -1
- package/src/events.ts +6 -6
package/dist/src/events.js
CHANGED
|
@@ -361,13 +361,13 @@ var mEvents = /** @class */ (function () {
|
|
|
361
361
|
maxWindGust: getWindGusts,
|
|
362
362
|
thunderstormDamageThreat: [getDamageThreat],
|
|
363
363
|
},
|
|
364
|
-
|
|
365
|
-
}
|
|
364
|
+
},
|
|
365
|
+
geometry: { type: 'Polygon', coordinates: [getPolygonCoordinates] }
|
|
366
366
|
};
|
|
367
367
|
if (loader.settings.alertSettings.ugcPolygons) {
|
|
368
368
|
ugcCoordinates = ugc_1.default.getCoordinates(mUgc.zones);
|
|
369
369
|
if (ugcCoordinates.length > 0) {
|
|
370
|
-
alert_2.
|
|
370
|
+
alert_2.geometry = { type: 'Polygon', coordinates: [ugcCoordinates] };
|
|
371
371
|
}
|
|
372
372
|
;
|
|
373
373
|
}
|
|
@@ -458,13 +458,13 @@ var mEvents = /** @class */ (function () {
|
|
|
458
458
|
maxWindGust: getWindGusts,
|
|
459
459
|
thunderstormDamageThreat: [getDamageThreat],
|
|
460
460
|
},
|
|
461
|
-
|
|
462
|
-
}
|
|
461
|
+
},
|
|
462
|
+
geometry: { type: 'Polygon', coordinates: [getPolygonCoordinates] }
|
|
463
463
|
};
|
|
464
464
|
if (loader.settings.alertSettings.ugcPolygons) {
|
|
465
465
|
ugcCoordinates = ugc_1.default.getCoordinates(mUgc.zones);
|
|
466
466
|
if (ugcCoordinates.length > 0) {
|
|
467
|
-
alert_3.
|
|
467
|
+
alert_3.geometry = { type: 'Polygon', coordinates: [ugcCoordinates] };
|
|
468
468
|
}
|
|
469
469
|
;
|
|
470
470
|
}
|
package/package.json
CHANGED
package/src/events.ts
CHANGED
|
@@ -230,12 +230,12 @@ export class mEvents {
|
|
|
230
230
|
maxWindGust: getWindGusts,
|
|
231
231
|
thunderstormDamageThreat: [getDamageThreat],
|
|
232
232
|
},
|
|
233
|
-
|
|
234
|
-
}
|
|
233
|
+
},
|
|
234
|
+
geometry: { type: 'Polygon', coordinates: [getPolygonCoordinates] }
|
|
235
235
|
};
|
|
236
236
|
if (loader.settings.alertSettings.ugcPolygons) {
|
|
237
237
|
const ugcCoordinates = mUgcParser.getCoordinates(mUgc.zones);
|
|
238
|
-
if (ugcCoordinates.length > 0) { alert.
|
|
238
|
+
if (ugcCoordinates.length > 0) { alert.geometry = { type: 'Polygon', coordinates: [ugcCoordinates] }; };
|
|
239
239
|
}
|
|
240
240
|
alerts.push(alert);
|
|
241
241
|
}
|
|
@@ -302,12 +302,12 @@ export class mEvents {
|
|
|
302
302
|
maxWindGust: getWindGusts,
|
|
303
303
|
thunderstormDamageThreat: [getDamageThreat],
|
|
304
304
|
},
|
|
305
|
-
|
|
306
|
-
}
|
|
305
|
+
},
|
|
306
|
+
geometry: { type: 'Polygon', coordinates: [getPolygonCoordinates] }
|
|
307
307
|
};
|
|
308
308
|
if (loader.settings.alertSettings.ugcPolygons) {
|
|
309
309
|
const ugcCoordinates = mUgcParser.getCoordinates(mUgc.zones);
|
|
310
|
-
if (ugcCoordinates.length > 0) { alert.
|
|
310
|
+
if (ugcCoordinates.length > 0) { alert.geometry = { type: 'Polygon', coordinates: [ugcCoordinates] }; };
|
|
311
311
|
}
|
|
312
312
|
alerts.push(alert);
|
|
313
313
|
}
|