@eeacms/volto-marine-policy 2.0.34 → 2.0.35

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,21 @@ 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.34](https://github.com/eea/volto-marine-policy/compare/2.0.33...2.0.34) - 29 October 2025
7
+ ### [2.0.35](https://github.com/eea/volto-marine-policy/compare/2.0.34...2.0.35) - 3 November 2025
8
8
 
9
- #### :bug: Bug Fixes
9
+ #### :rocket: New Features
10
+
11
+ - feat: new icons for Demo site explorer [laszlocseh - [`cbde97c`](https://github.com/eea/volto-marine-policy/commit/cbde97c9ff6ff209d9e3f0d4dbbf2d4338730f18)]
12
+
13
+ #### :house: Internal changes
14
+
15
+ - style: Automated code fix [eea-jenkins - [`2246072`](https://github.com/eea/volto-marine-policy/commit/22460723524bce84c7f48ed2bb8cd38e7ec78ecc)]
16
+ - style: Automated code fix [eea-jenkins - [`ac39190`](https://github.com/eea/volto-marine-policy/commit/ac39190f1c45b3f08d64222f188ae21bc924ef12)]
10
17
 
11
- - fix: fix demo sites explorer base layer [laszlocseh - [`567da96`](https://github.com/eea/volto-marine-policy/commit/567da96a3ca7dd017467de768d4068919eb813a8)]
18
+ #### :hammer_and_wrench: Others
19
+
20
+ - fix eslint [laszlocseh - [`55aaaae`](https://github.com/eea/volto-marine-policy/commit/55aaaaeb97d54a49f8ee0acaf8b6bd8987ef1d47)]
21
+ ### [2.0.34](https://github.com/eea/volto-marine-policy/compare/2.0.33...2.0.34) - 29 October 2025
12
22
 
13
23
  ### [2.0.33](https://github.com/eea/volto-marine-policy/compare/2.0.32...2.0.33) - 22 October 2025
14
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-marine-policy",
3
- "version": "2.0.34",
3
+ "version": "2.0.35",
4
4
  "description": "@eeacms/volto-marine-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -140,13 +140,21 @@ export default function DemoSitesExplorerView(props) {
140
140
  {/* <div className="legend-row legend-subtitle">Legend</div> */}
141
141
  <div className="legend-row">
142
142
  <div className="circle">
143
- <div className="dot-demosite"></div>
143
+ {/* <div className="dot-demosite"></div> */}
144
+ <img
145
+ src="/marine/europe-seas/eu-mission-restore-our-oceans-and-water/icon-point.png/@@images/image/small"
146
+ alt=""
147
+ />
144
148
  </div>
145
149
  <div>Demo site</div>
146
150
  </div>
147
151
  <div className="legend-row">
148
152
  <div className="circle">
149
- <div className="dot-region"></div>
153
+ {/* <div className="dot-region"></div> */}
154
+ <img
155
+ src="/marine/europe-seas/eu-mission-restore-our-oceans-and-water/icon-region.png/@@images/image/small"
156
+ alt=""
157
+ />
150
158
  </div>
151
159
  <div>Associated region</div>
152
160
  </div>
@@ -250,22 +250,34 @@ const selectedClusterStyle = ({ selectedFeature, ol, enableMarineMO }) => {
250
250
  });
251
251
  } else {
252
252
  // let color = feature.values_.features[0].values_['color'];
253
- let color = '#0179cf';
254
- let width = feature.values_.features[0].values_['width'];
255
- let radius = feature.values_.features[0].values_['radius'];
256
- // console.log(color)
257
- // let color = '#0083E0'; // #0083E0 #50B0A4
253
+ // type_is_region
254
+ // let color = '#0179cf';
255
+ // let width = feature.values_.features[0].values_['width'];
256
+ // let radius = feature.values_.features[0].values_['radius'];
257
+
258
+ // return new ol.style.Style({
259
+ // image: new ol.style.Circle({
260
+ // radius: radius,
261
+ // fill: new ol.style.Fill({
262
+ // color: '#fff',
263
+ // }),
264
+ // stroke: new ol.style.Stroke({
265
+ // color: color,
266
+ // width: width,
267
+ // }),
268
+ // }),
269
+ // });
270
+ let iconUrl =
271
+ feature.values_.features[0].values_['type_is_region'] ===
272
+ 'Associated region'
273
+ ? '/marine/europe-seas/eu-mission-restore-our-oceans-and-water/icon-region.png/@@images/image/icon'
274
+ : '/marine/europe-seas/eu-mission-restore-our-oceans-and-water/icon-point.png/@@images/image/icon';
258
275
 
259
276
  return new ol.style.Style({
260
- image: new ol.style.Circle({
261
- radius: radius,
262
- fill: new ol.style.Fill({
263
- color: '#fff',
264
- }),
265
- stroke: new ol.style.Stroke({
266
- color: color,
267
- width: width,
268
- }),
277
+ image: new ol.style.Icon({
278
+ anchor: [0.5, 1],
279
+ scale: 0.8,
280
+ src: iconUrl,
269
281
  }),
270
282
  });
271
283
  }
@@ -433,12 +433,11 @@
433
433
 
434
434
  .circle {
435
435
  position: relative;
436
- width: 22px;
436
+ width: 30px;
437
437
  min-width: 22px;
438
438
  height: 22px;
439
439
  border-radius: 50%;
440
- // background-color: #007265;
441
- background-color: #0179cf;
440
+ // background-color: #0179cf;
442
441
  gap: 0.5em;
443
442
  }
444
443