@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