@opengeoweb/sigmet-airmet 9.6.0 → 9.8.0

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.
Files changed (2) hide show
  1. package/index.esm.js +6 -4
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -7111,11 +7111,12 @@ var SigmetForm = function SigmetForm(_ref) {
7111
7111
  setDialogActionsDisabled = _ref.setDialogActionsDisabled;
7112
7112
  var _useApiContext = useApiContext(),
7113
7113
  api = _useApiContext.api;
7114
+ var firBorderAtStart = initialSigmet ? initialSigmet.locationIndicatorATSR : productConfig.active_firs[0];
7114
7115
  var _useMapDrawTool = useMapDrawTool({
7115
- defaultDrawModes: getDrawTools(StartOrEndDrawing.start, getFir(productConfig)),
7116
+ defaultDrawModes: getDrawTools(StartOrEndDrawing.start, getFir(productConfig, firBorderAtStart)),
7116
7117
  defaultGeoJSON: !isCancelSigmet && initialSigmet && initialSigmet.startGeometry ? addFeatureProperties(initialSigmet.startGeometry, featurePropsStart) : undefined,
7117
7118
  defaultGeoJSONIntersection: !isCancelSigmet && initialSigmet && initialSigmet.startGeometryIntersect ? addFeatureProperties(initialSigmet.startGeometryIntersect, featurePropsIntersectionStart) : undefined,
7118
- defaultGeoJSONIntersectionBounds: addFeatureProperties(getFir(productConfig), featurePropsFIR)
7119
+ defaultGeoJSONIntersectionBounds: addFeatureProperties(getFir(productConfig, firBorderAtStart), featurePropsFIR)
7119
7120
  }),
7120
7121
  startGeoJSON = _useMapDrawTool.geoJSON,
7121
7122
  startGeoJSONIntersection = _useMapDrawTool.geoJSONIntersection,
@@ -7427,11 +7428,12 @@ var AirmetForm = function AirmetForm(_ref) {
7427
7428
  productConfig = _ref$productConfig === void 0 ? airmetConfig : _ref$productConfig;
7428
7429
  var _useApiContext = useApiContext(),
7429
7430
  api = _useApiContext.api;
7431
+ var firBorderAtStart = initialAirmet ? initialAirmet.locationIndicatorATSR : productConfig.active_firs[0];
7430
7432
  var _useMapDrawTool = useMapDrawTool({
7431
- defaultDrawModes: getDrawTools(StartOrEndDrawing.start, getFir(productConfig)),
7433
+ defaultDrawModes: getDrawTools(StartOrEndDrawing.start, getFir(productConfig, firBorderAtStart)),
7432
7434
  defaultGeoJSON: !isCancelAirmet && initialAirmet && initialAirmet.startGeometry ? addFeatureProperties(initialAirmet.startGeometry, featurePropsStart) : undefined,
7433
7435
  defaultGeoJSONIntersection: !isCancelAirmet && initialAirmet && initialAirmet.startGeometryIntersect ? addFeatureProperties(initialAirmet.startGeometryIntersect, featurePropsIntersectionStart) : undefined,
7434
- defaultGeoJSONIntersectionBounds: addFeatureProperties(getFir(productConfig), featurePropsFIR)
7436
+ defaultGeoJSONIntersectionBounds: addFeatureProperties(getFir(productConfig, firBorderAtStart), featurePropsFIR)
7435
7437
  }),
7436
7438
  startGeoJSON = _useMapDrawTool.geoJSON,
7437
7439
  startGeoJSONIntersection = _useMapDrawTool.geoJSONIntersection,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/sigmet-airmet",
3
- "version": "9.6.0",
3
+ "version": "9.8.0",
4
4
  "description": "GeoWeb Sigmet/Airmet library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {