@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 +13 -3
- package/package.json +1 -1
- package/src/components/Blocks/DemoSitesExplorer/DemoSitesExplorerView.js +10 -2
- package/src/components/Blocks/DemoSitesExplorer/DemoSitesMap.jsx +26 -14
- package/src/components/Blocks/DemoSitesExplorer/images/icon-point.png +0 -0
- package/src/components/Blocks/DemoSitesExplorer/images/icon-region.png +0 -0
- package/src/components/Blocks/DemoSitesExplorer/styles.less +2 -3
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.
|
|
7
|
+
### [2.0.35](https://github.com/eea/volto-marine-policy/compare/2.0.34...2.0.35) - 3 November 2025
|
|
8
8
|
|
|
9
|
-
#### :
|
|
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
|
-
|
|
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
|
@@ -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
|
-
|
|
254
|
-
let
|
|
255
|
-
let
|
|
256
|
-
//
|
|
257
|
-
|
|
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.
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
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
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -433,12 +433,11 @@
|
|
|
433
433
|
|
|
434
434
|
.circle {
|
|
435
435
|
position: relative;
|
|
436
|
-
width:
|
|
436
|
+
width: 30px;
|
|
437
437
|
min-width: 22px;
|
|
438
438
|
height: 22px;
|
|
439
439
|
border-radius: 50%;
|
|
440
|
-
// background-color: #
|
|
441
|
-
background-color: #0179cf;
|
|
440
|
+
// background-color: #0179cf;
|
|
442
441
|
gap: 0.5em;
|
|
443
442
|
}
|
|
444
443
|
|