@opengeoweb/warnings 9.19.0 → 9.19.1

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.esm.js CHANGED
@@ -8075,7 +8075,8 @@ const zoomToFeature = (mapId, geojsonFeature) => {
8075
8075
  };
8076
8076
  const WarningsMapView = ({
8077
8077
  geojsonFeature,
8078
- defaultBbox: _defaultBbox = defaultBbox
8078
+ defaultBbox: _defaultBbox = defaultBbox,
8079
+ isSnapshot: _isSnapshot = false
8079
8080
  }) => {
8080
8081
  const mapId = React.useRef(`WarningsMapView_${generateMapId()}`).current;
8081
8082
  const warningLayer = {
@@ -8105,11 +8106,11 @@ const WarningsMapView = ({
8105
8106
  zoomToFeature(mapId, geojsonFeature);
8106
8107
  },
8107
8108
  holdShiftToScroll: true
8108
- }, /*#__PURE__*/React.createElement(MapViewLayer, Object.assign({}, defaultLayers.baseLayerGrey, {
8109
+ }, !_isSnapshot && ( /*#__PURE__*/React.createElement(MapViewLayer, Object.assign({}, defaultLayers.baseLayerGrey, {
8109
8110
  id: `${mapId}_baseLayer}`
8110
- })), warningLayer.geojson && /*#__PURE__*/React.createElement(MapViewLayer, Object.assign({}, warningLayer)), /*#__PURE__*/React.createElement(MapViewLayer, Object.assign({}, defaultLayers.overLayer, {
8111
+ }))), warningLayer.geojson && /*#__PURE__*/React.createElement(MapViewLayer, Object.assign({}, warningLayer)), !_isSnapshot && ( /*#__PURE__*/React.createElement(MapViewLayer, Object.assign({}, defaultLayers.overLayer, {
8111
8112
  id: `${mapId}_overlayer}`
8112
- }))));
8113
+ })))));
8113
8114
  };
8114
8115
 
8115
8116
  /* *
@@ -8308,7 +8309,8 @@ const Form = ({
8308
8309
  message: ''
8309
8310
  },
8310
8311
  isReadOnly: _isReadOnly2 = false,
8311
- onFormDirty: _onFormDirty = () => {}
8312
+ onFormDirty: _onFormDirty = () => {},
8313
+ isSnapshot: _isSnapshot = false
8312
8314
  }) => {
8313
8315
  const {
8314
8316
  t
@@ -8417,7 +8419,8 @@ const Form = ({
8417
8419
  xs: 12
8418
8420
  }, /*#__PURE__*/React.createElement(WarningsMapView, {
8419
8421
  geojsonFeature: warningGeoJSONFeatureWithFillProps,
8420
- defaultBbox: defaultBbox
8422
+ defaultBbox: defaultBbox,
8423
+ isSnapshot: _isSnapshot
8421
8424
  }))), /*#__PURE__*/React.createElement(Grid, {
8422
8425
  item: true,
8423
8426
  xs: 12,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/warnings",
3
- "version": "9.19.0",
3
+ "version": "9.19.1",
4
4
  "description": "GeoWeb warinings library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -24,6 +24,7 @@ interface FormProps {
24
24
  error?: FormError;
25
25
  isReadOnly?: boolean;
26
26
  onFormDirty?: (isFormDirty: boolean) => void;
27
+ isSnapshot?: boolean;
27
28
  }
28
29
  export declare const PublicWarningsForm: React.FC<FormProps>;
29
30
  export {};
@@ -8,6 +8,7 @@ interface WarningsMapViewProps {
8
8
  srs: string;
9
9
  bbox: Bbox;
10
10
  };
11
+ isSnapshot?: boolean;
11
12
  }
12
13
  export declare const WarningsMapView: React.FC<WarningsMapViewProps>;
13
14
  export {};