@opengeoweb/cap 12.5.0 → 12.7.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 +2 -15
  2. package/package.json +9 -9
package/index.esm.js CHANGED
@@ -7,7 +7,7 @@ import i18n from 'i18next';
7
7
  import { useTranslation } from 'react-i18next';
8
8
  import { ConfigurableMapConnect } from '@opengeoweb/core';
9
9
  import '@opengeoweb/timeslider';
10
- import { isOpenLayersEnabled, OpenLayersFeatureLayer, genericOpenLayersFeatureStyle, MapViewLayer, MapWarningProperties } from '@opengeoweb/webmap-react';
10
+ import { OpenLayersFeatureLayer, genericOpenLayersFeatureStyle, MapWarningProperties } from '@opengeoweb/webmap-react';
11
11
  import { useQuery, useQueries } from '@tanstack/react-query';
12
12
  import { handleResponse } from '@opengeoweb/api';
13
13
  import { GeoJSON } from 'ol/format';
@@ -722,7 +722,6 @@ var MapViewCapConnect = function MapViewCapConnect(_ref) {
722
722
  selectedFeatureEvent = _React$useState4[0],
723
723
  setSelectedFeatureEvent = _React$useState4[1];
724
724
  var mapIdRef = React.useRef(id || webmapUtils.generateMapId());
725
- var layerIdRef = React.useRef(webmapUtils.generateLayerId());
726
725
  var parentSizeRef = React.useRef(null);
727
726
  var _React$useState5 = React.useState(window.innerWidth / 2),
728
727
  _React$useState6 = _slicedToArray(_React$useState5, 2),
@@ -737,12 +736,6 @@ var MapViewCapConnect = function MapViewCapConnect(_ref) {
737
736
  window.removeEventListener('resize', handleWindowResize);
738
737
  };
739
738
  }, []);
740
- var highLightGeoJsonOnClick = function highLightGeoJsonOnClick(featureResults) {
741
- setSelectedFeatureEvent(featureResults);
742
- setFeaturesByAlert(function (previous) {
743
- return highlightGeoJson(previous, featureResults);
744
- });
745
- };
746
739
  var selectedTime = useSelector(function (store) {
747
740
  return mapSelectors.getSelectedTime(store, mapIdRef.current);
748
741
  });
@@ -802,7 +795,6 @@ var MapViewCapConnect = function MapViewCapConnect(_ref) {
802
795
  };
803
796
  // eslint-disable-next-line react-hooks/exhaustive-deps
804
797
  }, [featuresByAlert]);
805
- var useOl = isOpenLayersEnabled();
806
798
  return jsx("div", {
807
799
  "data-testid": "mapViewCap",
808
800
  style: {
@@ -817,17 +809,12 @@ var MapViewCapConnect = function MapViewCapConnect(_ref) {
817
809
  "data-testid": "capWarningMap",
818
810
  initialBbox: bbox,
819
811
  srs: srs,
820
- children: [useOl ? jsx(OpenLayersFeatureLayer, {
812
+ children: [jsx(OpenLayersFeatureLayer, {
821
813
  featureCollection: geoJsonObject,
822
814
  style: genericOpenLayersFeatureStyle,
823
815
  clickOnFeature: clickOnFeature,
824
816
  zIndex: 1000,
825
817
  testId: "MapViewCap-features"
826
- }) : jsx(MapViewLayer, {
827
- id: layerIdRef.current,
828
- geojson: geoJsonObject,
829
- onClickFeature: highLightGeoJsonOnClick,
830
- "data-testid": "polygonLayer"
831
818
  }), selectedFeatureEvent && jsx(MapWarningProperties, {
832
819
  "data-testid": "mapWarnings",
833
820
  selectedFeatureProperties: selectedFeatureEvent.feature.properties.details,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/cap",
3
- "version": "12.5.0",
3
+ "version": "12.7.0",
4
4
  "description": "GeoWeb Common Alerting Protocol (CAP) library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,20 +8,20 @@
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
10
  "dependencies": {
11
- "@opengeoweb/api": "12.5.0",
12
- "@opengeoweb/core": "12.5.0",
11
+ "@opengeoweb/api": "12.7.0",
12
+ "@opengeoweb/core": "12.7.0",
13
13
  "frappe-gantt": "^0.6.1",
14
- "@opengeoweb/shared": "12.5.0",
15
- "@opengeoweb/store": "12.5.0",
14
+ "@opengeoweb/shared": "12.7.0",
15
+ "@opengeoweb/store": "12.7.0",
16
16
  "react-redux": "^9.2.0",
17
- "@opengeoweb/webmap": "12.5.0",
18
- "@opengeoweb/webmap-react": "12.5.0",
17
+ "@opengeoweb/webmap": "12.7.0",
18
+ "@opengeoweb/webmap-react": "12.7.0",
19
19
  "@mui/system": "^7.0.1",
20
20
  "react-i18next": "^15.1.1",
21
21
  "@reduxjs/toolkit": "^2.6.1",
22
- "@opengeoweb/theme": "12.5.0",
22
+ "@opengeoweb/theme": "12.7.0",
23
23
  "i18next": "^25.0.1",
24
- "@opengeoweb/timeslider": "12.5.0",
24
+ "@opengeoweb/timeslider": "12.7.0",
25
25
  "@mui/material": "^7.0.1",
26
26
  "ol": "^10.4.0",
27
27
  "@tanstack/react-query": "^5.69.2"