@eeacms/volto-eea-map 0.1.31 → 0.1.32
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,13 +4,20 @@ 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
|
+
### [0.1.32](https://github.com/eea/volto-eea-map/compare/0.1.31...0.1.32) - 20 February 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- remove console.log [tedw87 - [`3aeb3e8`](https://github.com/eea/volto-eea-map/commit/3aeb3e8ec5474387f3cd22eb9b387c6681e17120)]
|
|
12
|
+
- refactor code [tedw87 - [`6d7830e`](https://github.com/eea/volto-eea-map/commit/6d7830eb934f56c255eea5642bdefba30d892946)]
|
|
13
|
+
- add Blossom basemap layer [tedw87 - [`5226ee2`](https://github.com/eea/volto-eea-map/commit/5226ee218df3401cf467afbc7a4d720dc30719e1)]
|
|
14
|
+
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`1dad5c6`](https://github.com/eea/volto-eea-map/commit/1dad5c6617096ff85223165a6dd2b1d5d7deea6a)]
|
|
7
15
|
### [0.1.31](https://github.com/eea/volto-eea-map/compare/0.1.30...0.1.31) - 11 November 2022
|
|
8
16
|
|
|
9
17
|
#### :hammer_and_wrench: Others
|
|
10
18
|
|
|
11
19
|
- fix project rootpath [andreiggr - [`ad4801d`](https://github.com/eea/volto-eea-map/commit/ad4801d8b17a68bf227f2a75f2d3fdd9a3491c13)]
|
|
12
20
|
- blocks styles for embed map block [andreiggr - [`a6263d5`](https://github.com/eea/volto-eea-map/commit/a6263d54374719914e6f52ee8e3ae7e3cc9450f5)]
|
|
13
|
-
- show first three visible layers in legend [andreiggr - [`1d434e3`](https://github.com/eea/volto-eea-map/commit/1d434e39ca0a5393baebe194948fd1a2a072d73d)]
|
|
14
21
|
### [0.1.30](https://github.com/eea/volto-eea-map/compare/0.1.29...0.1.30) - 4 November 2022
|
|
15
22
|
|
|
16
23
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -190,24 +190,37 @@ const Webmap = (props) => {
|
|
|
190
190
|
)
|
|
191
191
|
: [];
|
|
192
192
|
|
|
193
|
-
const
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
193
|
+
const generateMapBaselayer = (compositeType) => {
|
|
194
|
+
return new WebTileLayer({
|
|
195
|
+
urlTemplate: `https://gisco-services.ec.europa.eu/maps/tiles/OSM${compositeType}Composite/EPSG3857/{level}/{col}/{row}.png`,
|
|
196
|
+
});
|
|
197
|
+
};
|
|
197
198
|
|
|
198
199
|
// Create a Basemap with the WebTileLayer.
|
|
200
|
+
|
|
199
201
|
const positronCompositeBasemap = new Basemap({
|
|
200
|
-
baseLayers: [
|
|
202
|
+
baseLayers: [generateMapBaselayer('Positron')],
|
|
201
203
|
title: 'Positron Composite',
|
|
202
204
|
id: 'positron-composite',
|
|
203
205
|
thumbnailUrl:
|
|
204
206
|
'https://gisco-services.ec.europa.eu/maps/tiles/OSMPositronComposite/EPSG3857/0/0/0.png',
|
|
205
207
|
});
|
|
206
208
|
|
|
209
|
+
const blossomCompositeBasemap = new Basemap({
|
|
210
|
+
baseLayers: [generateMapBaselayer('Blossom')],
|
|
211
|
+
title: 'Blossom Composite',
|
|
212
|
+
id: 'blossom-composite',
|
|
213
|
+
thumbnailUrl:
|
|
214
|
+
'https://gisco-services.ec.europa.eu/maps/tiles/OSMBlossomComposite/EPSG3857/0/0/0.png',
|
|
215
|
+
});
|
|
216
|
+
|
|
207
217
|
const setBasemap = (basemap) => {
|
|
208
218
|
if (basemap === 'positron-composite') {
|
|
209
219
|
return positronCompositeBasemap;
|
|
210
220
|
}
|
|
221
|
+
if (basemap === 'blossom-composite') {
|
|
222
|
+
return blossomCompositeBasemap;
|
|
223
|
+
}
|
|
211
224
|
if (!basemap) {
|
|
212
225
|
return 'hybrid';
|
|
213
226
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { base_layers } from '../../constants';
|
|
2
2
|
|
|
3
|
-
const customBaselayers = [
|
|
3
|
+
const customBaselayers = [
|
|
4
|
+
['positron-composite', 'positron-composite'],
|
|
5
|
+
['blossom-composite', 'blossom-composite'],
|
|
6
|
+
];
|
|
4
7
|
|
|
5
8
|
const BaseLayerSchema = ({ data = {} }) => {
|
|
6
9
|
const useCustomBase = data?.map_data?.base?.use_custom_base;
|