@eeacms/volto-marine-policy 2.0.38 → 2.0.39
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/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,13 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
-
### [2.0.
|
|
7
|
+
### [2.0.39](https://github.com/eea/volto-marine-policy/compare/2.0.38...2.0.39) - 12 January 2026
|
|
8
8
|
|
|
9
|
-
#### :
|
|
9
|
+
#### :rocket: New Features
|
|
10
10
|
|
|
11
|
-
-
|
|
11
|
+
- feat: added new project to blueparks projects [laszlocseh - [`f26543c`](https://github.com/eea/volto-marine-policy/commit/f26543c2842dda09095588d27f5452ec875b224d)]
|
|
12
|
+
|
|
13
|
+
### [2.0.38](https://github.com/eea/volto-marine-policy/compare/2.0.37...2.0.38) - 8 January 2026
|
|
12
14
|
|
|
13
15
|
### [2.0.37](https://github.com/eea/volto-marine-policy/compare/2.0.36...2.0.37) - 27 November 2025
|
|
14
16
|
|
package/package.json
CHANGED
|
@@ -15,6 +15,7 @@ import InfoOverlay from './InfoOverlay';
|
|
|
15
15
|
import FeatureInteraction from './FeatureInteraction';
|
|
16
16
|
|
|
17
17
|
import {
|
|
18
|
+
BLUEPARKProjects,
|
|
18
19
|
centerAndResetMapZoom,
|
|
19
20
|
clearFilters,
|
|
20
21
|
getFeatures,
|
|
@@ -255,7 +256,7 @@ const selectedClusterStyle = ({ selectedFeature, ol, mapVariation }) => {
|
|
|
255
256
|
iconSize = 'tiny';
|
|
256
257
|
|
|
257
258
|
if (
|
|
258
|
-
|
|
259
|
+
BLUEPARKProjects.includes(
|
|
259
260
|
feature.values_.features[0].values_['project'],
|
|
260
261
|
)
|
|
261
262
|
) {
|
|
@@ -53,7 +53,7 @@ function FeatureInteraction({ onFeatureSelect, ol }) {
|
|
|
53
53
|
|
|
54
54
|
features.forEach((feature) => {
|
|
55
55
|
const subfeatures = feature.values_.features;
|
|
56
|
-
if (subfeatures.length
|
|
56
|
+
if (subfeatures.length >= 1) {
|
|
57
57
|
const selectedFeature = subfeatures[0].values_;
|
|
58
58
|
// if (hideFilters) {
|
|
59
59
|
// const url = window.location.origin + selectedFeature.path;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
export const BLUEPARKProjects = [
|
|
2
|
+
'BioProtect',
|
|
3
|
+
'BLUE CONNECT',
|
|
4
|
+
'BLUE4ALL',
|
|
5
|
+
'EFFECTIVE',
|
|
6
|
+
'SEAMPHONI',
|
|
7
|
+
];
|
|
8
|
+
|
|
1
9
|
export const objectivesCustomOrder = [
|
|
2
10
|
'Objective 1: Protect and restore marine and freshwater ecosystems and biodiversity',
|
|
3
11
|
'Objective 2: Prevent and eliminate pollution of our oceans, seas and waters',
|
|
@@ -206,12 +214,7 @@ export function filterCases(cases, activeFilters, indicatorOnly, mapVariation) {
|
|
|
206
214
|
// BioProtect, BLUE CONNECT, BLUE4ALL, EFFECTIVE
|
|
207
215
|
if (['blueParks'].includes(mapVariation)) {
|
|
208
216
|
let project = _case.properties.project;
|
|
209
|
-
if (
|
|
210
|
-
['BioProtect', 'BLUE CONNECT', 'BLUE4ALL', 'EFFECTIVE'].includes(
|
|
211
|
-
project,
|
|
212
|
-
)
|
|
213
|
-
)
|
|
214
|
-
flag_project = true;
|
|
217
|
+
if (BLUEPARKProjects.includes(project)) flag_project = true;
|
|
215
218
|
} else if (!activeFilters.project_filter.length) {
|
|
216
219
|
flag_project = true;
|
|
217
220
|
} else {
|