@eeacms/volto-eea-map 5.0.7 → 6.0.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.
- package/CHANGELOG.md +20 -19
- package/DEVELOP.md +19 -17
- package/README.md +33 -19
- package/docker-compose.yml +1 -1
- package/jest-addon.config.js +11 -4
- package/package.json +1 -1
- package/src/Arcgis/Layer/Layer.jsx +1 -0
- package/src/Arcgis/Map/Map.jsx +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,10 +4,30 @@ 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
|
+
### [6.0.0](https://github.com/eea/volto-eea-map/compare/5.0.8...6.0.0) - 25 March 2026
|
|
8
|
+
|
|
9
|
+
#### :rocket: New Features
|
|
10
|
+
|
|
11
|
+
- feat: Volto 18 support - refs #287700 [Alin Voinea - [`1282044`](https://github.com/eea/volto-eea-map/commit/12820446f44bbdb052d0cd7b05745825e049baf6)]
|
|
12
|
+
|
|
13
|
+
#### :house: Internal changes
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
#### :hammer_and_wrench: Others
|
|
17
|
+
|
|
18
|
+
- test: Fix SonarQube bugs [Alin Voinea - [`d7e712d`](https://github.com/eea/volto-eea-map/commit/d7e712d3997ca6d0f908928b7f6e05c6e5355898)]
|
|
19
|
+
- tests: Fix Sonar Qube tags - refs #297339 [Alin Voinea - [`e1ae40d`](https://github.com/eea/volto-eea-map/commit/e1ae40dfaad699ad116245abf220bafb3f945dae)]
|
|
20
|
+
### [5.0.8](https://github.com/eea/volto-eea-map/compare/5.0.7...5.0.8) - 18 December 2024
|
|
21
|
+
|
|
22
|
+
#### :hammer_and_wrench: Others
|
|
23
|
+
|
|
24
|
+
- test: Cleanup console.log [alin - [`c2ffb14`](https://github.com/eea/volto-eea-map/commit/c2ffb14a7288850d54980730f73c6b2ad9cd260c)]
|
|
25
|
+
- Check if variable exists [Miu Razvan - [`8531a80`](https://github.com/eea/volto-eea-map/commit/8531a8055eb83c7da17dc57355f5202d6f7ae244)]
|
|
7
26
|
### [5.0.7](https://github.com/eea/volto-eea-map/compare/5.0.6...5.0.7) - 29 November 2024
|
|
8
27
|
|
|
9
28
|
#### :bug: Bug Fixes
|
|
10
29
|
|
|
30
|
+
- fix(upload): of files through contents modal where action.request.data is undefined #87 [Ichim David - [`96ac6dc`](https://github.com/eea/volto-eea-map/commit/96ac6dcfad899856f915aac88767acbe75457daa)]
|
|
11
31
|
- fix(upload): of files through contents modal where action.request.data is undefined [Ichim David - [`4ca89e1`](https://github.com/eea/volto-eea-map/commit/4ca89e1ba22d662810a95c6bf6712ae41c355be2)]
|
|
12
32
|
|
|
13
33
|
### [5.0.6](https://github.com/eea/volto-eea-map/compare/5.0.5...5.0.6) - 6 November 2024
|
|
@@ -73,7 +93,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
73
93
|
- fix zoom to layer extent [Miu Razvan - [`28bc084`](https://github.com/eea/volto-eea-map/commit/28bc08456fbaa66938e8d0bf5f25ceaff753fae3)]
|
|
74
94
|
- finalize eea-map refactoring [Miu Razvan - [`3c6abf9`](https://github.com/eea/volto-eea-map/commit/3c6abf998e3fdca55b1e81a0553749ee90bfbcd6)]
|
|
75
95
|
- update [Miu Razvan - [`65205bc`](https://github.com/eea/volto-eea-map/commit/65205bc494f1d3c1b381ed6f9af01ed022e87c75)]
|
|
76
|
-
- Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`3530cbe`](https://github.com/eea/volto-eea-map/commit/3530cbef76a7ccb3eb372ea725cd4f5d08981e7b)]
|
|
77
96
|
- Update [Miu Razvan - [`13468a3`](https://github.com/eea/volto-eea-map/commit/13468a3c6738e612115535813e64b0a6af4c97d7)]
|
|
78
97
|
- wip [Miu Razvan - [`901fcc3`](https://github.com/eea/volto-eea-map/commit/901fcc318c618c0307a64081002ab4a048be70a7)]
|
|
79
98
|
- Update [Miu Razvan - [`d70dcf2`](https://github.com/eea/volto-eea-map/commit/d70dcf293b1395741ccbc524fa19145c829f72a9)]
|
|
@@ -85,7 +104,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
85
104
|
#### :hammer_and_wrench: Others
|
|
86
105
|
|
|
87
106
|
- Update package.json [ichim-david - [`52e141a`](https://github.com/eea/volto-eea-map/commit/52e141a3fab57904c4acb5e7e412c079f78fb0e0)]
|
|
88
|
-
- Add Sonarqube tag using marine-frontend addons list [EEA Jenkins - [`2a83a1e`](https://github.com/eea/volto-eea-map/commit/2a83a1eb9baa3a05a2a36f4cac2de75c148facca)]
|
|
89
107
|
- bump cypress version to 13.1.0 which is what is used by volto 17 [David Ichim - [`01abef9`](https://github.com/eea/volto-eea-map/commit/01abef9089385ee0b672e09aa37c1bf89d9f21b6)]
|
|
90
108
|
## [4.0.0](https://github.com/eea/volto-eea-map/compare/3.3.1...4.0.0) - 22 April 2024
|
|
91
109
|
|
|
@@ -96,7 +114,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
96
114
|
|
|
97
115
|
#### :hammer_and_wrench: Others
|
|
98
116
|
|
|
99
|
-
- Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`17d6cf3`](https://github.com/eea/volto-eea-map/commit/17d6cf35992b8785d12c1b54270dec2e46a0f93f)]
|
|
100
117
|
### [3.3.1](https://github.com/eea/volto-eea-map/compare/3.3.0...3.3.1) - 31 January 2024
|
|
101
118
|
|
|
102
119
|
### [3.3.0](https://github.com/eea/volto-eea-map/compare/3.2.1...3.3.0) - 17 January 2024
|
|
@@ -107,9 +124,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
107
124
|
|
|
108
125
|
#### :house: Internal changes
|
|
109
126
|
|
|
110
|
-
- chore: [JENKINS] add debug [valentinab25 - [`a84b567`](https://github.com/eea/volto-eea-map/commit/a84b5670d8c3c02e8c6371404925f0d18ac1118a)]
|
|
111
|
-
- chore: [JENKINS] add debug [valentinab25 - [`25a5656`](https://github.com/eea/volto-eea-map/commit/25a5656a0e596864f6f2a07d23ca33ec595d2cd2)]
|
|
112
|
-
- chore: [JENKINS] add debug [valentinab25 - [`839b32f`](https://github.com/eea/volto-eea-map/commit/839b32f99ca4e45c0398db2fd58bd575c413b5a7)]
|
|
113
127
|
|
|
114
128
|
#### :hammer_and_wrench: Others
|
|
115
129
|
|
|
@@ -164,8 +178,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
164
178
|
- fix prettier [Dobricean Ioan Dorian - [`78fc2ba`](https://github.com/eea/volto-eea-map/commit/78fc2baa2f5264ca1bba61b70bc0bdc5b2788e67)]
|
|
165
179
|
- Fix Sonorqube [dobri1408 - [`e04011a`](https://github.com/eea/volto-eea-map/commit/e04011aa811422f865d0bbb1e66af558a4310e77)]
|
|
166
180
|
- adapt embedeeamap to use serialized data [Dobricean Ioan Dorian - [`005965c`](https://github.com/eea/volto-eea-map/commit/005965c6793a9a9977fef52c08ba9a3173eec348)]
|
|
167
|
-
- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`de2f4f6`](https://github.com/eea/volto-eea-map/commit/de2f4f6f516c2c9f7c2b4ea84373f4b1a21cd0af)]
|
|
168
|
-
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`4722984`](https://github.com/eea/volto-eea-map/commit/47229842132b406101c340ab200c193925b784ad)]
|
|
169
181
|
### [2.0.7](https://github.com/eea/volto-eea-map/compare/2.0.6...2.0.7) - 10 November 2023
|
|
170
182
|
|
|
171
183
|
#### :rocket: New Features
|
|
@@ -182,7 +194,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
182
194
|
|
|
183
195
|
#### :house: Internal changes
|
|
184
196
|
|
|
185
|
-
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`7afd81a`](https://github.com/eea/volto-eea-map/commit/7afd81a76bf407b07a94228daf3ab0415fbe4621)]
|
|
186
197
|
- chore: husky, lint-staged use fixed versions [valentinab25 - [`0ee38a7`](https://github.com/eea/volto-eea-map/commit/0ee38a7bee84694a5e0230e2d17083fbc071f0c8)]
|
|
187
198
|
- chore:volto 16 in tests, update docs, fix stylelint overrides [valentinab25 - [`8efeb44`](https://github.com/eea/volto-eea-map/commit/8efeb4423da70e421a88cabdeb559eb3613fb96e)]
|
|
188
199
|
- chore: display legend for content type item, fix case when no note is set [dana-cfc4 - [`ae630a8`](https://github.com/eea/volto-eea-map/commit/ae630a88cffa2a8ef60e0bbfead392508b015497)]
|
|
@@ -192,10 +203,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
192
203
|
|
|
193
204
|
#### :hammer_and_wrench: Others
|
|
194
205
|
|
|
195
|
-
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`335133d`](https://github.com/eea/volto-eea-map/commit/335133dc5186a53c1077bbead36100101bd9af45)]
|
|
196
206
|
- Refs #260203: make background_image required [laszlocseh - [`baa5c4f`](https://github.com/eea/volto-eea-map/commit/baa5c4fa2fe618af51df12d48b4512ecafc357a8)]
|
|
197
|
-
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`4874649`](https://github.com/eea/volto-eea-map/commit/48746492a2b32a82d33d1c6415eab8a6f6b9f5be)]
|
|
198
|
-
- test: [JENKINS] Improve cypress time [valentinab25 - [`7fa0b83`](https://github.com/eea/volto-eea-map/commit/7fa0b837b24f41a01285fd1b17daeefde99a9c76)]
|
|
199
207
|
- use toolbar from volto-embed [Miu Razvan - [`29b73fb`](https://github.com/eea/volto-eea-map/commit/29b73fb8378ca56b3634bf1f7d57ce69a242b18e)]
|
|
200
208
|
### [2.0.6](https://github.com/eea/volto-eea-map/compare/2.0.5...2.0.6) - 29 September 2023
|
|
201
209
|
|
|
@@ -212,7 +220,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
212
220
|
|
|
213
221
|
- test: EN locales, pre-commit fix, feature PRs checks Refs #257193 [valentinab25 - [`4c6d141`](https://github.com/eea/volto-eea-map/commit/4c6d1413b67ffc3fe27a7d09dcc99ef98867cec9)]
|
|
214
222
|
- test: Fix package.json scripts to use makefile [Alin Voinea - [`1cd6751`](https://github.com/eea/volto-eea-map/commit/1cd675118165d8631c41d35c00a8c902c7edd803)]
|
|
215
|
-
- test: Fix eslint and yarn i18n [Alin Voinea - [`0184641`](https://github.com/eea/volto-eea-map/commit/018464116ba5b86b2c1e0a4ebc9b2fd95b772b66)]
|
|
216
223
|
- i18n: Add en [Alin Voinea - [`1d29304`](https://github.com/eea/volto-eea-map/commit/1d293049a21e138fa933cd5ed9a04cceac1a5cff)]
|
|
217
224
|
### [2.0.5](https://github.com/eea/volto-eea-map/compare/2.0.4...2.0.5) - 23 August 2023
|
|
218
225
|
|
|
@@ -269,14 +276,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
269
276
|
#### :hammer_and_wrench: Others
|
|
270
277
|
|
|
271
278
|
- Release 2.0.0 [Alin Voinea - [`7be280d`](https://github.com/eea/volto-eea-map/commit/7be280d4809186e663f422687aca3c33dd732904)]
|
|
272
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`ba6ed22`](https://github.com/eea/volto-eea-map/commit/ba6ed22118406db979457384d4739cced2096137)]
|
|
273
279
|
### [1.0.2](https://github.com/eea/volto-eea-map/compare/1.0.1...1.0.2) - 21 July 2023
|
|
274
280
|
|
|
275
281
|
#### :hammer_and_wrench: Others
|
|
276
282
|
|
|
277
283
|
- Allow blocks in content type [Tiberiu Ichim - [`2ac09a6`](https://github.com/eea/volto-eea-map/commit/2ac09a613aba07f6cbaf42c386660f2d7d09bd13)]
|
|
278
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`403b4c0`](https://github.com/eea/volto-eea-map/commit/403b4c009e5aaded58203bc292ba3baa4631488b)]
|
|
279
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`aedb654`](https://github.com/eea/volto-eea-map/commit/aedb6544fd45b147a3385425aba46ffba108f5ca)]
|
|
280
284
|
### [1.0.1](https://github.com/eea/volto-eea-map/compare/1.0.0...1.0.1) - 22 June 2023
|
|
281
285
|
|
|
282
286
|
#### :rocket: New Features
|
|
@@ -337,7 +341,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
337
341
|
|
|
338
342
|
- chore: clear unused #254131 [andreiggr - [`ccec2ea`](https://github.com/eea/volto-eea-map/commit/ccec2eaab173c905cd4ea0190a9c6cfd630250f9)]
|
|
339
343
|
- chore: clear block style #254131 [andreiggr - [`af500bc`](https://github.com/eea/volto-eea-map/commit/af500bc10a5f280eff0335f45bae1596d66a7e6b)]
|
|
340
|
-
- chore: [JENKINS] Remove alpha testing version [valentinab25 - [`76b29e5`](https://github.com/eea/volto-eea-map/commit/76b29e510f5156590723831a524bc39dfba6deba)]
|
|
341
344
|
|
|
342
345
|
#### :hammer_and_wrench: Others
|
|
343
346
|
|
|
@@ -347,7 +350,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
347
350
|
- * versions [andreiggr - [`6d9ff2b`](https://github.com/eea/volto-eea-map/commit/6d9ff2b26a236b6445678e3d84698d1c3c0826f4)]
|
|
348
351
|
- add razzle-plugin-scss dep [andreiggr - [`d74cee5`](https://github.com/eea/volto-eea-map/commit/d74cee51d30c866afe55730e5b25e0bf11d2caea)]
|
|
349
352
|
- volto-object-widget [andreiggr - [`18d0ed7`](https://github.com/eea/volto-eea-map/commit/18d0ed72c1ba7b0f7159a0eefc09ccea9acee5cb)]
|
|
350
|
-
- Add Sonarqube tag using bise-frontend addons list [EEA Jenkins - [`5911d01`](https://github.com/eea/volto-eea-map/commit/5911d01f7f3bc79a2c834fab75a9a4ac05d2d042)]
|
|
351
353
|
### [0.1.32](https://github.com/eea/volto-eea-map/compare/0.1.31...0.1.32) - 20 February 2023
|
|
352
354
|
|
|
353
355
|
#### :hammer_and_wrench: Others
|
|
@@ -355,7 +357,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
355
357
|
- remove console.log [tedw87 - [`3aeb3e8`](https://github.com/eea/volto-eea-map/commit/3aeb3e8ec5474387f3cd22eb9b387c6681e17120)]
|
|
356
358
|
- refactor code [tedw87 - [`6d7830e`](https://github.com/eea/volto-eea-map/commit/6d7830eb934f56c255eea5642bdefba30d892946)]
|
|
357
359
|
- add Blossom basemap layer [tedw87 - [`5226ee2`](https://github.com/eea/volto-eea-map/commit/5226ee218df3401cf467afbc7a4d720dc30719e1)]
|
|
358
|
-
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`1dad5c6`](https://github.com/eea/volto-eea-map/commit/1dad5c6617096ff85223165a6dd2b1d5d7deea6a)]
|
|
359
360
|
### [0.1.31](https://github.com/eea/volto-eea-map/compare/0.1.30...0.1.31) - 11 November 2022
|
|
360
361
|
|
|
361
362
|
#### :hammer_and_wrench: Others
|
package/DEVELOP.md
CHANGED
|
@@ -26,21 +26,20 @@
|
|
|
26
26
|
|
|
27
27
|
### Or add @eeacms/volto-eea-map to your Volto project
|
|
28
28
|
|
|
29
|
-
Before starting make sure your development environment is properly set. See [Volto
|
|
29
|
+
Before starting make sure your development environment is properly set. See the official Plone documentation for [creating a project with Cookieplone](https://6.docs.plone.org/install/create-project-cookieplone.html) and [installing an add-on in development mode in Volto 18 and 19](https://6.docs.plone.org/volto/development/add-ons/install-an-add-on-dev-18.html).
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
For new Volto 18+ projects, use Cookieplone. It includes `mrs-developer` by default.
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
1. Create a new Volto project with Cookieplone
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
yo @plone/volto my-volto-project --addon @eeacms/volto-eea-map --skip-install
|
|
38
|
-
cd my-volto-project
|
|
35
|
+
uvx cookieplone project
|
|
36
|
+
cd project-title
|
|
39
37
|
|
|
40
38
|
1. Add the following to `mrs.developer.json`:
|
|
41
39
|
|
|
42
40
|
{
|
|
43
41
|
"volto-eea-map": {
|
|
42
|
+
"output": "packages",
|
|
44
43
|
"url": "https://github.com/eea/volto-eea-map.git",
|
|
45
44
|
"package": "@eeacms/volto-eea-map",
|
|
46
45
|
"branch": "develop",
|
|
@@ -48,28 +47,31 @@ Before starting make sure your development environment is properly set. See [Vol
|
|
|
48
47
|
}
|
|
49
48
|
}
|
|
50
49
|
|
|
51
|
-
1.
|
|
50
|
+
1. Add `@eeacms/volto-eea-map` to the `addons` key in your project `volto.config.js`
|
|
51
|
+
|
|
52
|
+
1. Install or refresh the project setup
|
|
52
53
|
|
|
53
|
-
make
|
|
54
|
-
yarn
|
|
54
|
+
make install
|
|
55
55
|
|
|
56
|
-
1. Start backend
|
|
56
|
+
1. Start backend in one terminal
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
make backend-start
|
|
59
59
|
|
|
60
|
-
...wait for backend to setup and start
|
|
60
|
+
...wait for backend to setup and start, ending with `Ready to handle requests`
|
|
61
61
|
|
|
62
62
|
...you can also check http://localhost:8080/Plone
|
|
63
63
|
|
|
64
|
-
1. Start frontend
|
|
64
|
+
1. Start frontend in a second terminal
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
make frontend-start
|
|
67
67
|
|
|
68
68
|
1. Go to http://localhost:3000
|
|
69
69
|
|
|
70
70
|
1. Happy hacking!
|
|
71
71
|
|
|
72
|
-
cd
|
|
72
|
+
cd packages/volto-eea-map
|
|
73
|
+
|
|
74
|
+
For legacy Volto 17 projects, keep using the yarn-based workflow from the Volto 17 documentation.
|
|
73
75
|
|
|
74
76
|
## Cypress
|
|
75
77
|
|
|
@@ -81,7 +83,7 @@ project where you added `volto-eea-map` to `mrs.developer.json`
|
|
|
81
83
|
Go to:
|
|
82
84
|
|
|
83
85
|
```BASH
|
|
84
|
-
cd
|
|
86
|
+
cd packages/volto-eea-map/
|
|
85
87
|
```
|
|
86
88
|
|
|
87
89
|
Start:
|
package/README.md
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
[](https://github.com/eea/volto-eea-map/releases)
|
|
4
4
|
|
|
5
5
|
[](https://ci.eionet.europa.eu/view/Github/job/volto-addons/job/volto-eea-map/job/master/display/redirect)
|
|
6
|
-
[](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-eea-map
|
|
6
|
+
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-eea-map)
|
|
7
|
+
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-eea-map)
|
|
8
|
+
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-eea-map)
|
|
9
|
+
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-eea-map)
|
|
10
10
|
|
|
11
11
|
[](https://ci.eionet.europa.eu/view/Github/job/volto-addons/job/volto-eea-map/job/develop/display/redirect)
|
|
12
|
-
[](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-eea-map
|
|
12
|
+
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-eea-map&branch=develop)
|
|
13
|
+
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-eea-map&branch=develop)
|
|
14
|
+
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-eea-map&branch=develop)
|
|
15
|
+
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-eea-map&branch=develop)
|
|
16
16
|
|
|
17
17
|
[Volto](https://github.com/plone/volto) add-on
|
|
18
18
|
|
|
@@ -51,6 +51,11 @@ After this, sources can be added from the visualization edit interface. "Data Pr
|
|
|
51
51
|
|
|
52
52
|
Go to http://localhost:3000
|
|
53
53
|
|
|
54
|
+
`make start` now defaults to Volto 18. To run the same setup against Volto 17, use:
|
|
55
|
+
|
|
56
|
+
VOLTO_VERSION=17 make
|
|
57
|
+
VOLTO_VERSION=17 make start
|
|
58
|
+
|
|
54
59
|
### Add volto-eea-map to your Volto project
|
|
55
60
|
|
|
56
61
|
1. Make sure you have a [Plone backend](https://plone.org/download) up-and-running at http://localhost:8080/Plone
|
|
@@ -64,30 +69,39 @@ Go to http://localhost:3000
|
|
|
64
69
|
- If you already have a volto project, just update `package.json`:
|
|
65
70
|
|
|
66
71
|
```JSON
|
|
67
|
-
"addons": [
|
|
68
|
-
"@eeacms/volto-eea-map"
|
|
69
|
-
],
|
|
70
|
-
|
|
71
72
|
"dependencies": {
|
|
72
73
|
"@eeacms/volto-eea-map": "*"
|
|
73
74
|
}
|
|
74
75
|
```
|
|
75
76
|
|
|
76
|
-
|
|
77
|
+
and `volto.config.js`:
|
|
78
|
+
|
|
79
|
+
```JavaScript
|
|
80
|
+
const addons = ['@eeacms/volto-eea-map'];
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
- If not, create one with Cookieplone, as recommended by the official Plone documentation for Volto 18+:
|
|
77
84
|
|
|
78
85
|
```
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
cd my-volto-project
|
|
86
|
+
uvx cookieplone project
|
|
87
|
+
cd project-title
|
|
82
88
|
```
|
|
83
89
|
|
|
84
|
-
1. Install
|
|
90
|
+
1. Install or update dependencies, then start the project:
|
|
85
91
|
|
|
86
92
|
```
|
|
87
|
-
|
|
88
|
-
yarn start
|
|
93
|
+
make install
|
|
89
94
|
```
|
|
90
95
|
|
|
96
|
+
For a Cookieplone project, start the backend and frontend in separate terminals:
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
make backend-start
|
|
100
|
+
make frontend-start
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
For a legacy Volto 17 project, install the package with `yarn` and restart the frontend as usual.
|
|
104
|
+
|
|
91
105
|
1. Go to http://localhost:3000
|
|
92
106
|
|
|
93
107
|
1. Happy editing!
|
package/docker-compose.yml
CHANGED
package/jest-addon.config.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
require('dotenv').config({ path: __dirname + '/.env' })
|
|
2
2
|
|
|
3
|
+
const fs = require('fs')
|
|
4
|
+
const path = require('path')
|
|
5
|
+
|
|
6
|
+
const voltoSlatePath = fs.existsSync(
|
|
7
|
+
path.join(__dirname, '../../../node_modules/@plone/volto-slate/src'),
|
|
8
|
+
)
|
|
9
|
+
? '<rootDir>/node_modules/@plone/volto-slate/src'
|
|
10
|
+
: '<rootDir>/node_modules/@plone/volto/packages/volto-slate/src'
|
|
11
|
+
|
|
3
12
|
module.exports = {
|
|
4
13
|
testMatch: ['**/src/addons/**/?(*.)+(spec|test).[jt]s?(x)'],
|
|
5
14
|
collectCoverageFrom: [
|
|
@@ -17,10 +26,8 @@ module.exports = {
|
|
|
17
26
|
'@eeacms/search/(.*)$': '<rootDir>/src/addons/volto-searchlib/searchlib/$1',
|
|
18
27
|
'@eeacms/search': '<rootDir>/src/addons/volto-searchlib/searchlib',
|
|
19
28
|
'@eeacms/(.*?)/(.*)$': '<rootDir>/node_modules/@eeacms/$1/src/$2',
|
|
20
|
-
'@plone/volto-slate$':
|
|
21
|
-
|
|
22
|
-
'@plone/volto-slate/(.*)$':
|
|
23
|
-
'<rootDir>/node_modules/@plone/volto/packages/volto-slate/src/$1',
|
|
29
|
+
'@plone/volto-slate$': voltoSlatePath,
|
|
30
|
+
'@plone/volto-slate/(.*)$': `${voltoSlatePath}/$1`,
|
|
24
31
|
'~/(.*)$': '<rootDir>/src/$1',
|
|
25
32
|
'load-volto-addons':
|
|
26
33
|
'<rootDir>/node_modules/@plone/volto/jest-addons-loader.js',
|
package/package.json
CHANGED
|
@@ -147,6 +147,7 @@ class $Layer extends EventEmitter {
|
|
|
147
147
|
const data = await this.#layer.queryExtent();
|
|
148
148
|
if (!$map.view?.ready) return;
|
|
149
149
|
$map.view.goTo(data.extent).then(() => {
|
|
150
|
+
if ($map.view) return;
|
|
150
151
|
const homeWidget = $map.view.ui.find('Home');
|
|
151
152
|
if (!homeWidget) return;
|
|
152
153
|
homeWidget.viewpoint = new $map.modules.AgViewpoint({
|
package/src/Arcgis/Map/Map.jsx
CHANGED
|
@@ -76,6 +76,7 @@ class $Map extends EventEmitter {
|
|
|
76
76
|
#props = {};
|
|
77
77
|
#map = null;
|
|
78
78
|
#view = null;
|
|
79
|
+
#withCustomViewpoint = undefined;
|
|
79
80
|
reactiveUtils = null;
|
|
80
81
|
|
|
81
82
|
constructor(props) {
|
|
@@ -104,12 +105,16 @@ class $Map extends EventEmitter {
|
|
|
104
105
|
return this.#props;
|
|
105
106
|
}
|
|
106
107
|
|
|
108
|
+
get withCustomViewpoint() {
|
|
109
|
+
return this.#withCustomViewpoint;
|
|
110
|
+
}
|
|
111
|
+
|
|
107
112
|
set props(props) {
|
|
108
113
|
this.#props = props;
|
|
109
114
|
}
|
|
110
115
|
|
|
111
116
|
set withCustomViewpoint(value) {
|
|
112
|
-
this
|
|
117
|
+
this.#withCustomViewpoint = value;
|
|
113
118
|
}
|
|
114
119
|
|
|
115
120
|
async loadModules() {
|