@eeacms/volto-eea-map 0.1.16 → 0.1.19

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,202 +4,190 @@ 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.16](https://github.com/eea/volto-eea-map/compare/0.1.15...0.1.16)
7
+ ### [0.1.19](https://github.com/eea/volto-eea-map/compare/0.1.18...0.1.19) - 31 August 2022
8
8
 
9
- - faster update q params for view/edit [`a2d64fb`](https://github.com/eea/volto-eea-map/commit/a2d64fb1112bc129d3183403649a0e5dde822745)
9
+ #### :hammer_and_wrench: Others
10
10
 
11
- #### [0.1.15](https://github.com/eea/volto-eea-map/compare/0.1.14...0.1.15)
11
+ - Api link updates [andreiggr - [`50c28c9`](https://github.com/eea/volto-eea-map/commit/50c28c93341fcd36bdf3328e194672526ad23408)]
12
+ ### [0.1.18](https://github.com/eea/volto-eea-map/compare/0.1.17...0.1.18) - 30 August 2022
12
13
 
13
- > 26 August 2022
14
+ #### :hammer_and_wrench: Others
14
15
 
15
- - Quick fix [`#15`](https://github.com/eea/volto-eea-map/pull/15)
16
- - more space for button [`8fa6a3b`](https://github.com/eea/volto-eea-map/commit/8fa6a3b230cd835d0fbcc4881b14d51d318b91be)
17
- - eslint happy [`30b41d2`](https://github.com/eea/volto-eea-map/commit/30b41d2d18fcf2d195cdd08a2b6b9c78e6a303bb)
18
- - better update [`a1ca2f5`](https://github.com/eea/volto-eea-map/commit/a1ca2f51d1f24d932ad03fe61b5a4a564b491873)
19
- - update deps [`c9d2f92`](https://github.com/eea/volto-eea-map/commit/c9d2f920c076e77f030cd841ca5a1e49cc1bc319)
20
- - use only query params from qidget [`303793f`](https://github.com/eea/volto-eea-map/commit/303793f6f3af8c0cf8857e08a61cbf9e16c7d810)
21
- - get map data from getContent [`40ae731`](https://github.com/eea/volto-eea-map/commit/40ae73135cd93e49ce0956d4ca0ef5e3425e3d19)
22
- - use button on action [`86a090b`](https://github.com/eea/volto-eea-map/commit/86a090b17ccf3f951146cb8adcaf539fd8cf9faf)
16
+ - add scalebar widget [andreiggr - [`bebf792`](https://github.com/eea/volto-eea-map/commit/bebf7923a7a486ec8378afdb64d1e23f6dc37fe0)]
17
+ ### [0.1.17](https://github.com/eea/volto-eea-map/compare/0.1.16...0.1.17) - 29 August 2022
23
18
 
24
- #### [0.1.14](https://github.com/eea/volto-eea-map/compare/0.1.13...0.1.14)
19
+ #### :hammer_and_wrench: Others
25
20
 
26
- > 26 August 2022
21
+ - small fix embed updates on query [andreiggr - [`7771f7e`](https://github.com/eea/volto-eea-map/commit/7771f7e417f23e9d5bfce64986fdd7634a916b64)]
22
+ ### [0.1.16](https://github.com/eea/volto-eea-map/compare/0.1.15...0.1.16) - 29 August 2022
27
23
 
28
- - Develop [`#14`](https://github.com/eea/volto-eea-map/pull/14)
29
- - new sources styles, icons from remixicon [`c9cca2a`](https://github.com/eea/volto-eea-map/commit/c9cca2a5e41322cfdeca1865b47a1892514c1cfc)
30
- - reorganize & clean [`a902b89`](https://github.com/eea/volto-eea-map/commit/a902b8945389b19b388e85e00066b2c46a9e1a2e)
31
- - Layer widget improvements [`99abe57`](https://github.com/eea/volto-eea-map/commit/99abe5722590719ac7e640de44a69ee19fcecfdf)
32
- - Change data queries cards [`8d3c742`](https://github.com/eea/volto-eea-map/commit/8d3c74239f62782737108c25e84683239e6ab12f)
33
- - Set default settings [`2c26f57`](https://github.com/eea/volto-eea-map/commit/2c26f571618d289158c7d32fd9814edcd29a7c60)
34
- - Add description to layer [`cccfd59`](https://github.com/eea/volto-eea-map/commit/cccfd598060c4228215a5add1da3e159312966b2)
35
- - only embed viz for now [`6bb7daf`](https://github.com/eea/volto-eea-map/commit/6bb7daf458a47bd185870ec3627a542f8ba715bc)
36
- - Visualization improvements [`2a77f8b`](https://github.com/eea/volto-eea-map/commit/2a77f8bba1f6fd840d41043ee41b1b3bd23807f3)
37
- - Cleanup [`6d6ceb9`](https://github.com/eea/volto-eea-map/commit/6d6ceb99768ff477a727cf217e48099e6f2d1a59)
38
- - Add all query parameters with all values [`2f8c617`](https://github.com/eea/volto-eea-map/commit/2f8c61711154953ec25e20614b4ad96ed2bf592b)
39
- - Data query widget visual improvements [`7eb3144`](https://github.com/eea/volto-eea-map/commit/7eb3144ad58a839ccc96f22d58a441b245893ea7)
40
- - Data query widget more responsive to changes [`bb86329`](https://github.com/eea/volto-eea-map/commit/bb863299d51627a28f02e2cda133fc0e3bf9ebe9)
24
+ #### :hammer_and_wrench: Others
41
25
 
42
- #### [0.1.13](https://github.com/eea/volto-eea-map/compare/0.1.12...0.1.13)
26
+ - faster update q params for view/edit [andreiggr - [`a2d64fb`](https://github.com/eea/volto-eea-map/commit/a2d64fb1112bc129d3183403649a0e5dde822745)]
27
+ ### [0.1.15](https://github.com/eea/volto-eea-map/compare/0.1.14...0.1.15) - 26 August 2022
43
28
 
44
- > 22 August 2022
29
+ #### :hammer_and_wrench: Others
45
30
 
46
- - Enable Embed EEA map access to data_query [`#13`](https://github.com/eea/volto-eea-map/pull/13)
47
- - update embed map with data_query [`719c007`](https://github.com/eea/volto-eea-map/commit/719c00776dff7ba63bbd57761a2c86ec5345a911)
31
+ - more space for button [andreiggr - [`8fa6a3b`](https://github.com/eea/volto-eea-map/commit/8fa6a3b230cd835d0fbcc4881b14d51d318b91be)]
32
+ - eslint happy [andreiggr - [`30b41d2`](https://github.com/eea/volto-eea-map/commit/30b41d2d18fcf2d195cdd08a2b6b9c78e6a303bb)]
33
+ - better update [andreiggr - [`a1ca2f5`](https://github.com/eea/volto-eea-map/commit/a1ca2f51d1f24d932ad03fe61b5a4a564b491873)]
34
+ - update deps [andreiggr - [`c9d2f92`](https://github.com/eea/volto-eea-map/commit/c9d2f920c076e77f030cd841ca5a1e49cc1bc319)]
35
+ - use only query params from qidget [andreiggr - [`303793f`](https://github.com/eea/volto-eea-map/commit/303793f6f3af8c0cf8857e08a61cbf9e16c7d810)]
36
+ - get map data from getContent [andreiggr - [`40ae731`](https://github.com/eea/volto-eea-map/commit/40ae73135cd93e49ce0956d4ca0ef5e3425e3d19)]
37
+ - use button on action [andreiggr - [`86a090b`](https://github.com/eea/volto-eea-map/commit/86a090b17ccf3f951146cb8adcaf539fd8cf9faf)]
38
+ ### [0.1.14](https://github.com/eea/volto-eea-map/compare/0.1.13...0.1.14) - 26 August 2022
48
39
 
49
- #### [0.1.12](https://github.com/eea/volto-eea-map/compare/0.1.11...0.1.12)
40
+ #### :hammer_and_wrench: Others
50
41
 
51
- > 22 August 2022
42
+ - new sources styles, icons from remixicon [andreiggr - [`c9cca2a`](https://github.com/eea/volto-eea-map/commit/c9cca2a5e41322cfdeca1865b47a1892514c1cfc)]
43
+ - reorganize & clean [andreiggr - [`a902b89`](https://github.com/eea/volto-eea-map/commit/a902b8945389b19b388e85e00066b2c46a9e1a2e)]
44
+ - Layer widget improvements [andreiggr - [`99abe57`](https://github.com/eea/volto-eea-map/commit/99abe5722590719ac7e640de44a69ee19fcecfdf)]
45
+ - Change data queries cards [andreiggr - [`8d3c742`](https://github.com/eea/volto-eea-map/commit/8d3c74239f62782737108c25e84683239e6ab12f)]
46
+ - Set default settings [andreiggr - [`2c26f57`](https://github.com/eea/volto-eea-map/commit/2c26f571618d289158c7d32fd9814edcd29a7c60)]
47
+ - Add description to layer [andreiggr - [`cccfd59`](https://github.com/eea/volto-eea-map/commit/cccfd598060c4228215a5add1da3e159312966b2)]
48
+ - only embed viz for now [andreiggr - [`6bb7daf`](https://github.com/eea/volto-eea-map/commit/6bb7daf458a47bd185870ec3627a542f8ba715bc)]
49
+ - Visualization improvements [andreiggr - [`2a77f8b`](https://github.com/eea/volto-eea-map/commit/2a77f8bba1f6fd840d41043ee41b1b3bd23807f3)]
50
+ - Cleanup [andreiggr - [`6d6ceb9`](https://github.com/eea/volto-eea-map/commit/6d6ceb99768ff477a727cf217e48099e6f2d1a59)]
51
+ - Add all query parameters with all values [andreiggr - [`2f8c617`](https://github.com/eea/volto-eea-map/commit/2f8c61711154953ec25e20614b4ad96ed2bf592b)]
52
+ - Data query widget visual improvements [andreiggr - [`7eb3144`](https://github.com/eea/volto-eea-map/commit/7eb3144ad58a839ccc96f22d58a441b245893ea7)]
53
+ - Data query widget more responsive to changes [andreiggr - [`bb86329`](https://github.com/eea/volto-eea-map/commit/bb863299d51627a28f02e2cda133fc0e3bf9ebe9)]
54
+ ### [0.1.13](https://github.com/eea/volto-eea-map/compare/0.1.12...0.1.13) - 22 August 2022
55
+
56
+ #### :hammer_and_wrench: Others
57
+
58
+ - update embed map with data_query [andreiggr - [`719c007`](https://github.com/eea/volto-eea-map/commit/719c00776dff7ba63bbd57761a2c86ec5345a911)]
59
+ ### [0.1.12](https://github.com/eea/volto-eea-map/compare/0.1.11...0.1.12) - 22 August 2022
52
60
 
53
- - Develop [`#12`](https://github.com/eea/volto-eea-map/pull/12)
54
- - cleanup [`53a2d89`](https://github.com/eea/volto-eea-map/commit/53a2d897675af2f75d8bd787ed07cdcfac69bdd0)
55
- - get criteria and map it as query on fresh layers [`51f8087`](https://github.com/eea/volto-eea-map/commit/51f80870764d65140ac0a6408c01c0b63476bbd2)
56
-
57
- #### [0.1.11](https://github.com/eea/volto-eea-map/compare/0.1.10...0.1.11)
58
-
59
- > 18 August 2022
60
-
61
- - Legend for each layer in object list [`#11`](https://github.com/eea/volto-eea-map/pull/11)
62
- - Legend for all layers [`2d9285e`](https://github.com/eea/volto-eea-map/commit/2d9285e12ea512b7a1f24300ad2f7b3072e334d5)
63
-
64
- #### [0.1.10](https://github.com/eea/volto-eea-map/compare/0.1.9...0.1.10)
65
-
66
- > 17 August 2022
67
-
68
- - EEA core metadata adaptation [`#10`](https://github.com/eea/volto-eea-map/pull/10)
69
- - EEA core metadata adaptation for map block to [`5fb5724`](https://github.com/eea/volto-eea-map/commit/5fb5724164e1e9b1ae5143f9bd565c28118be253)
70
-
71
- #### [0.1.9](https://github.com/eea/volto-eea-map/compare/0.1.8...0.1.9)
72
-
73
- > 12 August 2022
74
-
75
- - Query builder for map layers queries [`#9`](https://github.com/eea/volto-eea-map/pull/9)
76
- - pinpoint query builder [`6184b0e`](https://github.com/eea/volto-eea-map/commit/6184b0e1dcee48e7d34bf56bc1c878438d07f987)
77
- - build query widget [`7a9d74a`](https://github.com/eea/volto-eea-map/commit/7a9d74a6fdac32a8b424c5ca97edd42df436cbe2)
78
-
79
- #### [0.1.8](https://github.com/eea/volto-eea-map/compare/0.1.7...0.1.8)
80
-
81
- > 11 August 2022
82
-
83
- - Integration & new block for Map Visualization content-type [`#8`](https://github.com/eea/volto-eea-map/pull/8)
84
- - remove title on map edit widget [`1d00707`](https://github.com/eea/volto-eea-map/commit/1d0070716a743ea7f26c5f877b723492319fcecd)
85
- - update query by stored value [`c0f6ddd`](https://github.com/eea/volto-eea-map/commit/c0f6dddadaaf28de5b9914214acf735a166fae88)
86
- - stylelint [`511845a`](https://github.com/eea/volto-eea-map/commit/511845a319137dfe4e1c0c9846ee5ccb7656b32b)
87
- - visual candy [`2b24975`](https://github.com/eea/volto-eea-map/commit/2b249758f30133d8080793e892d0771e9b63dea5)
88
- - responsive hoc only keep device size [`444f8b3`](https://github.com/eea/volto-eea-map/commit/444f8b3df2dd58a1f1e5bd6c6a90c1e9919696a1)
89
- - responsive improvements on edit widget [`1dcdda0`](https://github.com/eea/volto-eea-map/commit/1dcdda077f5aaa8ddd256d2bec2f1018a15e066d)
90
- - map is sticky [`64f3874`](https://github.com/eea/volto-eea-map/commit/64f3874648f0ede23502998e9165e86538e44728)
91
- - simplified layer edit [`b64348c`](https://github.com/eea/volto-eea-map/commit/b64348c962647cdfc48d3328c5effb3b02b6217c)
92
- - no consoles [`1387128`](https://github.com/eea/volto-eea-map/commit/1387128037abb314798326fa3c47b52a13d0415f)
93
- - show if zoom/print position [`c4d7107`](https://github.com/eea/volto-eea-map/commit/c4d7107e874616c2246ec883d07eb59fad76b21e)
94
- - lint fix [`cc497bd`](https://github.com/eea/volto-eea-map/commit/cc497bd8fe61d8867b74a8a16bc4868ccf088d55)
95
- - fixes on webmap [`1c4506b`](https://github.com/eea/volto-eea-map/commit/1c4506b227d3a0ad0f919e3ff826700304b0620a)
96
- - new embed eea map block to work with visualizations [`be4f2b0`](https://github.com/eea/volto-eea-map/commit/be4f2b00f92ea9dedc359e8c2620a9a31f4b5b6b)
97
- - remove vis_url logic, will be moved in a new block [`13ebe94`](https://github.com/eea/volto-eea-map/commit/13ebe94c6c339fc827c019aab0a698aa431c5b78)
98
- - Updates for map visualization [`895d463`](https://github.com/eea/volto-eea-map/commit/895d46313e9b65c6a5f420284fb9459296ed83f4)
99
-
100
- #### [0.1.7](https://github.com/eea/volto-eea-map/compare/0.1.6...0.1.7)
101
-
102
- > 9 August 2022
103
-
104
- - Develop [`#7`](https://github.com/eea/volto-eea-map/pull/7)
105
- - fix height coming through in view [`39d4d28`](https://github.com/eea/volto-eea-map/commit/39d4d287a4fe86890f5fad8d9050130b496dfe70)
106
- - Connected visualization view-edit [`52a8e21`](https://github.com/eea/volto-eea-map/commit/52a8e2187cb2e3a7db660ae4b6b5610c88be5083)
107
- - map_view is map_editor_widget, add view component for content-type [`dc227f9`](https://github.com/eea/volto-eea-map/commit/dc227f9bbb259b59739a3694dc69f0fcca661137)
108
- - Add map visualization widget [`affd84c`](https://github.com/eea/volto-eea-map/commit/affd84ca8753214c07f2f0756a13f08f5cf0a048)
109
-
110
- #### [0.1.6](https://github.com/eea/volto-eea-map/compare/0.1.5...0.1.6)
111
-
112
- > 5 August 2022
113
-
114
- - Develop [`#6`](https://github.com/eea/volto-eea-map/pull/6)
115
- - Lint fix [`f5561d1`](https://github.com/eea/volto-eea-map/commit/f5561d1581201bd635b4e53e8a46decaf684438f)
116
- - Map improvements [`c75d16c`](https://github.com/eea/volto-eea-map/commit/c75d16c265136d9f676e194540e613bb742fb51b)
117
-
118
- #### [0.1.5](https://github.com/eea/volto-eea-map/compare/0.1.4...0.1.5)
119
-
120
- > 4 August 2022
121
-
122
- - Develop [`#5`](https://github.com/eea/volto-eea-map/pull/5)
123
- - Center on extent only on map load [`b63f586`](https://github.com/eea/volto-eea-map/commit/b63f586e0df68faa755bb0d25e297530e36ef7c9)
124
- - Configure proxy for all map subdomains [`0f19030`](https://github.com/eea/volto-eea-map/commit/0f19030569e1f77b1ff7657669e876519712840f)
125
- - Prevent unnecessary rerenders of ma [`8752384`](https://github.com/eea/volto-eea-map/commit/8752384b3bbd7b564a25b3e4347c47692106f556)
126
- - Prevent unnecessary rerenders of map [`00a3e64`](https://github.com/eea/volto-eea-map/commit/00a3e64585748a36ef476b2d75540bdd43778486)
127
- - Clear print schema [`29ed979`](https://github.com/eea/volto-eea-map/commit/29ed9795812d6673f8fb91ac73e53e4e132ed55a)
128
- - Move zoom & print in general tab [`06c4996`](https://github.com/eea/volto-eea-map/commit/06c499651217715e1793d2a75fb72668dc1de223)
129
- - Clear [`9aa7bf1`](https://github.com/eea/volto-eea-map/commit/9aa7bf1591b22a2941ce0f269ef133d687affc15)
130
- - Disable url for screenshot atm [`1ef18fc`](https://github.com/eea/volto-eea-map/commit/1ef18fc8b7516c88c743cffb10b5eb340161d58d)
131
-
132
- #### [0.1.4](https://github.com/eea/volto-eea-map/compare/0.1.3...0.1.4)
133
-
134
- > 3 August 2022
135
-
136
- - Map updates [`#4`](https://github.com/eea/volto-eea-map/pull/4)
137
- - Configure Privacy protection screenshot data [`49097c0`](https://github.com/eea/volto-eea-map/commit/49097c0b7aa8657e626d5a49dd0eed84f5e71e78)
138
- - Expandable Legend [`6edda2f`](https://github.com/eea/volto-eea-map/commit/6edda2fafd8a2a61f3f1f10c47a9ca5bb35a0355)
139
- - Catch for no data [`7cef4e6`](https://github.com/eea/volto-eea-map/commit/7cef4e641650ede23e37ca9116130db1ef0a18db)
140
-
141
- #### [0.1.3](https://github.com/eea/volto-eea-map/compare/0.1.2...0.1.3)
142
-
143
- > 2 August 2022
144
-
145
- - Center map on first layer [`#3`](https://github.com/eea/volto-eea-map/pull/3)
146
- - Icons & download/viewer change [`321f538`](https://github.com/eea/volto-eea-map/commit/321f538e9582f9a12db3f64beb26588616e867e2)
147
- - Inline inputs actions & styles [`1f4787e`](https://github.com/eea/volto-eea-map/commit/1f4787e3b3f0dc1328ff23cca2459db816188e3a)
148
- - more updates for cy10 [`4d5c6a1`](https://github.com/eea/volto-eea-map/commit/4d5c6a1925413b44acc70b5ad3753378830dba2d)
149
- - updates for cy10 [`30e0293`](https://github.com/eea/volto-eea-map/commit/30e0293ed79cad3cf3f62bcacd3c14a5627543bd)
150
- - upgrade to cypress 10 [`fe9ca3e`](https://github.com/eea/volto-eea-map/commit/fe9ca3e6a98dd02c6b774f931fe73f18712e0e7b)
151
- - padding & menu dimension [`da27ccd`](https://github.com/eea/volto-eea-map/commit/da27ccd2b0b42fb5c325a76bdde63e92216b1c93)
152
- - general tab settings move to block schema [`075baed`](https://github.com/eea/volto-eea-map/commit/075baed1629964b40d355c8612498e02a16eedfc)
153
- - enable conditional editor schema [`801f3c1`](https://github.com/eea/volto-eea-map/commit/801f3c1999b9b7373d1093d3835d62df8bd2fbca)
154
- - run cypress on latest alpha [`0935ace`](https://github.com/eea/volto-eea-map/commit/0935aceedb0963b770aa9579c2c21a4f543513c3)
155
- - Clear schema [`4b22f0a`](https://github.com/eea/volto-eea-map/commit/4b22f0aee58cca2bbcd2a8bee9864a01d65e7738)
156
- - Center on extent control [`9e8b13d`](https://github.com/eea/volto-eea-map/commit/9e8b13dfd5bbfa5eb2419c54444a15fefa384de4)
157
- - Clear consoles [`798bc2f`](https://github.com/eea/volto-eea-map/commit/798bc2fbf6f77ffadcedcf1e4666b315bc71ea6c)
158
-
159
- #### [0.1.2](https://github.com/eea/volto-eea-map/compare/0.1.1...0.1.2)
160
-
161
- > 29 July 2022
162
-
163
- - Develop [`#2`](https://github.com/eea/volto-eea-map/pull/2)
164
- - Legend only selected layer [`3474d79`](https://github.com/eea/volto-eea-map/commit/3474d7989321f656397c292bddc289f8f6329a8e)
165
- - Query layer by existing fields [`52363f5`](https://github.com/eea/volto-eea-map/commit/52363f57a9ab4e49c7418e883bdf0c5bb30c1734)
166
- - Cleanup [`d4e07b2`](https://github.com/eea/volto-eea-map/commit/d4e07b2fb89a5a27f5e4411047cb43e1c8add769)
167
- - Description is slate [`86c983e`](https://github.com/eea/volto-eea-map/commit/86c983e7a4841ed07826c9015b70dbe931e9081a)
168
-
169
- #### [0.1.1](https://github.com/eea/volto-eea-map/compare/0.1.0...0.1.1)
170
-
171
- > 26 July 2022
172
-
173
- - Repo structure update [`#1`](https://github.com/eea/volto-eea-map/pull/1)
174
- - Lint [`d31819d`](https://github.com/eea/volto-eea-map/commit/d31819d98338fbc013dfd4506466e7c20b04aad5)
175
- - Remove object pick widget [`40c7bcd`](https://github.com/eea/volto-eea-map/commit/40c7bcd2305bbab1c21919a0ae82af3eb628b09d)
176
- - Add group layer [`74fd1af`](https://github.com/eea/volto-eea-map/commit/74fd1af2bce6347ce4a80758947e05b7c4a6d516)
177
- - Group extra views [`17b1a10`](https://github.com/eea/volto-eea-map/commit/17b1a10052326ce8db34ebe1250a167b82b9d11c)
178
- - Move description in block edit [`edf277c`](https://github.com/eea/volto-eea-map/commit/edf277c1cf8a8a438dca08e44b17164c1fdd25a5)
179
- - external legend fetch, map actions [`f2ddb8d`](https://github.com/eea/volto-eea-map/commit/f2ddb8df5bb3a6c8761086497d2795c6e0df126d)
180
- - fix modal save/reset [`49b62db`](https://github.com/eea/volto-eea-map/commit/49b62db597ff7e41cbcc1ef52730aff84457ae9f)
181
- - More schema edits [`91f18b9`](https://github.com/eea/volto-eea-map/commit/91f18b9c23842f45509f0e8844639402bad22f8e)
182
- - Description, general tab, download, sources, open app [`7c7cf5a`](https://github.com/eea/volto-eea-map/commit/7c7cf5ac16ccff5c2c52a6721eda658496de272e)
183
- - Zoom, center, level controls [`f51ecc8`](https://github.com/eea/volto-eea-map/commit/f51ecc8c8a97a0b7615d1762dd662646b41c7d7e)
184
- - Legend, Print controls [`8e042aa`](https://github.com/eea/volto-eea-map/commit/8e042aa1aa532516e8b2355d082760d96adaac57)
185
- - Legend, Print, default tab base [`7879456`](https://github.com/eea/volto-eea-map/commit/787945637257606e826bea8b4ded2d073d6d4a5b)
186
- - Edit widget save/cancel logic [`d28764c`](https://github.com/eea/volto-eea-map/commit/d28764cb65b84426c2df45e9b37ac0a0062788f2)
187
- - Edit menu update [`828daa4`](https://github.com/eea/volto-eea-map/commit/828daa488221e774c93094ef3aeaa8a3b6543159)
188
- - Fixes & improvements [`35c3c4a`](https://github.com/eea/volto-eea-map/commit/35c3c4a0b080b53929f5aa70b9936c2128d8f6ac)
189
- - Widgetization of the edit widget (WIP) [`e32edd1`](https://github.com/eea/volto-eea-map/commit/e32edd139bbbb607b0ba02febda2bf211ae1c176)
190
- - Store base layer value [`0158549`](https://github.com/eea/volto-eea-map/commit/01585491f828de1e591fd70f292fda1e679896ca)
191
- - base layer in editor panels [`75e4a05`](https://github.com/eea/volto-eea-map/commit/75e4a059adf938f95b2bf21f4b9b7f30837a233c)
192
- - widgetization of MapEditor & extended variation [`30914a8`](https://github.com/eea/volto-eea-map/commit/30914a86ebbcb2575e3209d6b2af8621fae2718c)
193
- - handle Error from api [`477970b`](https://github.com/eea/volto-eea-map/commit/477970bfc9dc86acc3cca96ad0931ada3316fcd6)
194
- - Edit layers verify & fetch from serviceUrl [`672ade1`](https://github.com/eea/volto-eea-map/commit/672ade112faf10394b463c91a07323d1fe78eb26)
195
- - Edit widget, layers tabs [`4cc34d4`](https://github.com/eea/volto-eea-map/commit/4cc34d41bb0e227785076f033a941aeaf7c42ed8)
196
- - add map & configurations [`61cfd12`](https://github.com/eea/volto-eea-map/commit/61cfd125b1a230682e817f3728af5379f104c410)
197
- - packs fix [`4eb213a`](https://github.com/eea/volto-eea-map/commit/4eb213a11d95c468e76a5c76db9ae2ced29db6b8)
198
- - bootstrap [`2d16195`](https://github.com/eea/volto-eea-map/commit/2d161953a4e20db079162130cd6f1bf2116c874a)
199
- - init eea map block [`1033ec3`](https://github.com/eea/volto-eea-map/commit/1033ec3af09cc07807f983898a9c2ec63cbc81c6)
200
-
201
- #### 0.1.0
202
-
203
- > 26 July 2022
204
-
205
- - Initial commit [`39f2dfc`](https://github.com/eea/volto-eea-map/commit/39f2dfcc5f60451930621e0238a11f710e233371)
61
+ #### :hammer_and_wrench: Others
62
+
63
+ - cleanup [andreiggr - [`53a2d89`](https://github.com/eea/volto-eea-map/commit/53a2d897675af2f75d8bd787ed07cdcfac69bdd0)]
64
+ - get criteria and map it as query on fresh layers [andreiggr - [`51f8087`](https://github.com/eea/volto-eea-map/commit/51f80870764d65140ac0a6408c01c0b63476bbd2)]
65
+ ### [0.1.11](https://github.com/eea/volto-eea-map/compare/0.1.10...0.1.11) - 18 August 2022
66
+
67
+ #### :hammer_and_wrench: Others
68
+
69
+ - Legend for all layers [andreiggr - [`2d9285e`](https://github.com/eea/volto-eea-map/commit/2d9285e12ea512b7a1f24300ad2f7b3072e334d5)]
70
+ ### [0.1.10](https://github.com/eea/volto-eea-map/compare/0.1.9...0.1.10) - 17 August 2022
71
+
72
+ #### :hammer_and_wrench: Others
73
+
74
+ - EEA core metadata adaptation for map block to [andreiggr - [`5fb5724`](https://github.com/eea/volto-eea-map/commit/5fb5724164e1e9b1ae5143f9bd565c28118be253)]
75
+ ### [0.1.9](https://github.com/eea/volto-eea-map/compare/0.1.8...0.1.9) - 12 August 2022
76
+
77
+ #### :hammer_and_wrench: Others
78
+
79
+ - pinpoint query builder [andreiggr - [`6184b0e`](https://github.com/eea/volto-eea-map/commit/6184b0e1dcee48e7d34bf56bc1c878438d07f987)]
80
+ - build query widget [andreiggr - [`7a9d74a`](https://github.com/eea/volto-eea-map/commit/7a9d74a6fdac32a8b424c5ca97edd42df436cbe2)]
81
+ ### [0.1.8](https://github.com/eea/volto-eea-map/compare/0.1.7...0.1.8) - 11 August 2022
82
+
83
+ #### :hammer_and_wrench: Others
84
+
85
+ - remove title on map edit widget [andreiggr - [`1d00707`](https://github.com/eea/volto-eea-map/commit/1d0070716a743ea7f26c5f877b723492319fcecd)]
86
+ - update query by stored value [andreiggr - [`c0f6ddd`](https://github.com/eea/volto-eea-map/commit/c0f6dddadaaf28de5b9914214acf735a166fae88)]
87
+ - stylelint [andreiggr - [`511845a`](https://github.com/eea/volto-eea-map/commit/511845a319137dfe4e1c0c9846ee5ccb7656b32b)]
88
+ - visual candy [andreiggr - [`2b24975`](https://github.com/eea/volto-eea-map/commit/2b249758f30133d8080793e892d0771e9b63dea5)]
89
+ - responsive hoc only keep device size [andreiggr - [`444f8b3`](https://github.com/eea/volto-eea-map/commit/444f8b3df2dd58a1f1e5bd6c6a90c1e9919696a1)]
90
+ - responsive improvements on edit widget [andreiggr - [`1dcdda0`](https://github.com/eea/volto-eea-map/commit/1dcdda077f5aaa8ddd256d2bec2f1018a15e066d)]
91
+ - map is sticky [andreiggr - [`64f3874`](https://github.com/eea/volto-eea-map/commit/64f3874648f0ede23502998e9165e86538e44728)]
92
+ - simplified layer edit [andreiggr - [`b64348c`](https://github.com/eea/volto-eea-map/commit/b64348c962647cdfc48d3328c5effb3b02b6217c)]
93
+ - no consoles [andreiggr - [`1387128`](https://github.com/eea/volto-eea-map/commit/1387128037abb314798326fa3c47b52a13d0415f)]
94
+ - show if zoom/print position [andreiggr - [`c4d7107`](https://github.com/eea/volto-eea-map/commit/c4d7107e874616c2246ec883d07eb59fad76b21e)]
95
+ - lint fix [andreiggr - [`cc497bd`](https://github.com/eea/volto-eea-map/commit/cc497bd8fe61d8867b74a8a16bc4868ccf088d55)]
96
+ - fixes on webmap [andreiggr - [`1c4506b`](https://github.com/eea/volto-eea-map/commit/1c4506b227d3a0ad0f919e3ff826700304b0620a)]
97
+ - new embed eea map block to work with visualizations [andreiggr - [`be4f2b0`](https://github.com/eea/volto-eea-map/commit/be4f2b00f92ea9dedc359e8c2620a9a31f4b5b6b)]
98
+ - remove vis_url logic, will be moved in a new block [andreiggr - [`13ebe94`](https://github.com/eea/volto-eea-map/commit/13ebe94c6c339fc827c019aab0a698aa431c5b78)]
99
+ - Updates for map visualization [andreiggr - [`895d463`](https://github.com/eea/volto-eea-map/commit/895d46313e9b65c6a5f420284fb9459296ed83f4)]
100
+ ### [0.1.7](https://github.com/eea/volto-eea-map/compare/0.1.6...0.1.7) - 9 August 2022
101
+
102
+ #### :hammer_and_wrench: Others
103
+
104
+ - fix height coming through in view [andreiggr - [`39d4d28`](https://github.com/eea/volto-eea-map/commit/39d4d287a4fe86890f5fad8d9050130b496dfe70)]
105
+ - Connected visualization view-edit [andreiggr - [`52a8e21`](https://github.com/eea/volto-eea-map/commit/52a8e2187cb2e3a7db660ae4b6b5610c88be5083)]
106
+ - map_view is map_editor_widget, add view component for content-type [andreiggr - [`dc227f9`](https://github.com/eea/volto-eea-map/commit/dc227f9bbb259b59739a3694dc69f0fcca661137)]
107
+ - Add map visualization widget [andreiggr - [`affd84c`](https://github.com/eea/volto-eea-map/commit/affd84ca8753214c07f2f0756a13f08f5cf0a048)]
108
+ ### [0.1.6](https://github.com/eea/volto-eea-map/compare/0.1.5...0.1.6) - 5 August 2022
109
+
110
+ #### :hammer_and_wrench: Others
111
+
112
+ - Lint fix [andreiggr - [`f5561d1`](https://github.com/eea/volto-eea-map/commit/f5561d1581201bd635b4e53e8a46decaf684438f)]
113
+ - Map improvements [andreiggr - [`c75d16c`](https://github.com/eea/volto-eea-map/commit/c75d16c265136d9f676e194540e613bb742fb51b)]
114
+ ### [0.1.5](https://github.com/eea/volto-eea-map/compare/0.1.4...0.1.5) - 4 August 2022
115
+
116
+ #### :hammer_and_wrench: Others
117
+
118
+ - Center on extent only on map load [andreiggr - [`b63f586`](https://github.com/eea/volto-eea-map/commit/b63f586e0df68faa755bb0d25e297530e36ef7c9)]
119
+ - Configure proxy for all map subdomains [andreiggr - [`0f19030`](https://github.com/eea/volto-eea-map/commit/0f19030569e1f77b1ff7657669e876519712840f)]
120
+ - Prevent unnecessary rerenders of ma [andreiggr - [`8752384`](https://github.com/eea/volto-eea-map/commit/8752384b3bbd7b564a25b3e4347c47692106f556)]
121
+ - Prevent unnecessary rerenders of map [andreiggr - [`00a3e64`](https://github.com/eea/volto-eea-map/commit/00a3e64585748a36ef476b2d75540bdd43778486)]
122
+ - Clear print schema [andreiggr - [`29ed979`](https://github.com/eea/volto-eea-map/commit/29ed9795812d6673f8fb91ac73e53e4e132ed55a)]
123
+ - Move zoom & print in general tab [andreiggr - [`06c4996`](https://github.com/eea/volto-eea-map/commit/06c499651217715e1793d2a75fb72668dc1de223)]
124
+ - Clear [andreiggr - [`9aa7bf1`](https://github.com/eea/volto-eea-map/commit/9aa7bf1591b22a2941ce0f269ef133d687affc15)]
125
+ - Disable url for screenshot atm [andreiggr - [`1ef18fc`](https://github.com/eea/volto-eea-map/commit/1ef18fc8b7516c88c743cffb10b5eb340161d58d)]
126
+ ### [0.1.4](https://github.com/eea/volto-eea-map/compare/0.1.3...0.1.4) - 3 August 2022
127
+
128
+ #### :hammer_and_wrench: Others
129
+
130
+ - Configure Privacy protection screenshot data [andreiggr - [`49097c0`](https://github.com/eea/volto-eea-map/commit/49097c0b7aa8657e626d5a49dd0eed84f5e71e78)]
131
+ - Expandable Legend [andreiggr - [`6edda2f`](https://github.com/eea/volto-eea-map/commit/6edda2fafd8a2a61f3f1f10c47a9ca5bb35a0355)]
132
+ - Catch for no data [andreiggr - [`7cef4e6`](https://github.com/eea/volto-eea-map/commit/7cef4e641650ede23e37ca9116130db1ef0a18db)]
133
+ ### [0.1.3](https://github.com/eea/volto-eea-map/compare/0.1.2...0.1.3) - 2 August 2022
134
+
135
+ #### :hammer_and_wrench: Others
136
+
137
+ - Icons & download/viewer change [andreiggr - [`321f538`](https://github.com/eea/volto-eea-map/commit/321f538e9582f9a12db3f64beb26588616e867e2)]
138
+ - Inline inputs actions & styles [andreiggr - [`1f4787e`](https://github.com/eea/volto-eea-map/commit/1f4787e3b3f0dc1328ff23cca2459db816188e3a)]
139
+ - more updates for cy10 [andreiggr - [`4d5c6a1`](https://github.com/eea/volto-eea-map/commit/4d5c6a1925413b44acc70b5ad3753378830dba2d)]
140
+ - updates for cy10 [andreiggr - [`30e0293`](https://github.com/eea/volto-eea-map/commit/30e0293ed79cad3cf3f62bcacd3c14a5627543bd)]
141
+ - upgrade to cypress 10 [andreiggr - [`fe9ca3e`](https://github.com/eea/volto-eea-map/commit/fe9ca3e6a98dd02c6b774f931fe73f18712e0e7b)]
142
+ - padding & menu dimension [andreiggr - [`da27ccd`](https://github.com/eea/volto-eea-map/commit/da27ccd2b0b42fb5c325a76bdde63e92216b1c93)]
143
+ - general tab settings move to block schema [andreiggr - [`075baed`](https://github.com/eea/volto-eea-map/commit/075baed1629964b40d355c8612498e02a16eedfc)]
144
+ - enable conditional editor schema [andreiggr - [`801f3c1`](https://github.com/eea/volto-eea-map/commit/801f3c1999b9b7373d1093d3835d62df8bd2fbca)]
145
+ - run cypress on latest alpha [andreiggr - [`0935ace`](https://github.com/eea/volto-eea-map/commit/0935aceedb0963b770aa9579c2c21a4f543513c3)]
146
+ - Clear schema [andreiggr - [`4b22f0a`](https://github.com/eea/volto-eea-map/commit/4b22f0aee58cca2bbcd2a8bee9864a01d65e7738)]
147
+ - Center on extent control [andreiggr - [`9e8b13d`](https://github.com/eea/volto-eea-map/commit/9e8b13dfd5bbfa5eb2419c54444a15fefa384de4)]
148
+ - Clear consoles [andreiggr - [`798bc2f`](https://github.com/eea/volto-eea-map/commit/798bc2fbf6f77ffadcedcf1e4666b315bc71ea6c)]
149
+ ### [0.1.2](https://github.com/eea/volto-eea-map/compare/0.1.1...0.1.2) - 29 July 2022
150
+
151
+ #### :hammer_and_wrench: Others
152
+
153
+ - Legend only selected layer [andreiggr - [`3474d79`](https://github.com/eea/volto-eea-map/commit/3474d7989321f656397c292bddc289f8f6329a8e)]
154
+ - Query layer by existing fields [andreiggr - [`52363f5`](https://github.com/eea/volto-eea-map/commit/52363f57a9ab4e49c7418e883bdf0c5bb30c1734)]
155
+ - Cleanup [andreiggr - [`d4e07b2`](https://github.com/eea/volto-eea-map/commit/d4e07b2fb89a5a27f5e4411047cb43e1c8add769)]
156
+ - Description is slate [andreiggr - [`86c983e`](https://github.com/eea/volto-eea-map/commit/86c983e7a4841ed07826c9015b70dbe931e9081a)]
157
+ ### [0.1.1](https://github.com/eea/volto-eea-map/compare/0.1.0...0.1.1) - 26 July 2022
158
+
159
+ #### :hammer_and_wrench: Others
160
+
161
+ - Lint [andreiggr - [`d31819d`](https://github.com/eea/volto-eea-map/commit/d31819d98338fbc013dfd4506466e7c20b04aad5)]
162
+ - Remove object pick widget [andreiggr - [`40c7bcd`](https://github.com/eea/volto-eea-map/commit/40c7bcd2305bbab1c21919a0ae82af3eb628b09d)]
163
+ - Add group layer [andreiggr - [`74fd1af`](https://github.com/eea/volto-eea-map/commit/74fd1af2bce6347ce4a80758947e05b7c4a6d516)]
164
+ - Group extra views [andreiggr - [`17b1a10`](https://github.com/eea/volto-eea-map/commit/17b1a10052326ce8db34ebe1250a167b82b9d11c)]
165
+ - Move description in block edit [andreiggr - [`edf277c`](https://github.com/eea/volto-eea-map/commit/edf277c1cf8a8a438dca08e44b17164c1fdd25a5)]
166
+ - external legend fetch, map actions [andreiggr - [`f2ddb8d`](https://github.com/eea/volto-eea-map/commit/f2ddb8df5bb3a6c8761086497d2795c6e0df126d)]
167
+ - fix modal save/reset [andreiggr - [`49b62db`](https://github.com/eea/volto-eea-map/commit/49b62db597ff7e41cbcc1ef52730aff84457ae9f)]
168
+ - More schema edits [andreiggr - [`91f18b9`](https://github.com/eea/volto-eea-map/commit/91f18b9c23842f45509f0e8844639402bad22f8e)]
169
+ - Description, general tab, download, sources, open app [andreiggr - [`7c7cf5a`](https://github.com/eea/volto-eea-map/commit/7c7cf5ac16ccff5c2c52a6721eda658496de272e)]
170
+ - Zoom, center, level controls [andreiggr - [`f51ecc8`](https://github.com/eea/volto-eea-map/commit/f51ecc8c8a97a0b7615d1762dd662646b41c7d7e)]
171
+ - Legend, Print controls [andreiggr - [`8e042aa`](https://github.com/eea/volto-eea-map/commit/8e042aa1aa532516e8b2355d082760d96adaac57)]
172
+ - Legend, Print, default tab base [andreiggr - [`7879456`](https://github.com/eea/volto-eea-map/commit/787945637257606e826bea8b4ded2d073d6d4a5b)]
173
+ - Edit widget save/cancel logic [andreiggr - [`d28764c`](https://github.com/eea/volto-eea-map/commit/d28764cb65b84426c2df45e9b37ac0a0062788f2)]
174
+ - Edit menu update [andreiggr - [`828daa4`](https://github.com/eea/volto-eea-map/commit/828daa488221e774c93094ef3aeaa8a3b6543159)]
175
+ - Fixes & improvements [andreiggr - [`35c3c4a`](https://github.com/eea/volto-eea-map/commit/35c3c4a0b080b53929f5aa70b9936c2128d8f6ac)]
176
+ - Widgetization of the edit widget (WIP) [andreiggr - [`e32edd1`](https://github.com/eea/volto-eea-map/commit/e32edd139bbbb607b0ba02febda2bf211ae1c176)]
177
+ - Store base layer value [andreiggr - [`0158549`](https://github.com/eea/volto-eea-map/commit/01585491f828de1e591fd70f292fda1e679896ca)]
178
+ - base layer in editor panels [andreiggr - [`75e4a05`](https://github.com/eea/volto-eea-map/commit/75e4a059adf938f95b2bf21f4b9b7f30837a233c)]
179
+ - widgetization of MapEditor & extended variation [andreiggr - [`30914a8`](https://github.com/eea/volto-eea-map/commit/30914a86ebbcb2575e3209d6b2af8621fae2718c)]
180
+ - handle Error from api [andreiggr - [`477970b`](https://github.com/eea/volto-eea-map/commit/477970bfc9dc86acc3cca96ad0931ada3316fcd6)]
181
+ - Edit layers verify & fetch from serviceUrl [andreiggr - [`672ade1`](https://github.com/eea/volto-eea-map/commit/672ade112faf10394b463c91a07323d1fe78eb26)]
182
+ - Edit widget, layers tabs [andreiggr - [`4cc34d4`](https://github.com/eea/volto-eea-map/commit/4cc34d41bb0e227785076f033a941aeaf7c42ed8)]
183
+ - Update Jenkinsfile [Alexandru Ghica - [`88cbff7`](https://github.com/eea/volto-eea-map/commit/88cbff79378d80cfa656bccddfc1d2fc6f0117ac)]
184
+ - Update Jenkinsfile [Alexandru Ghica - [`694c333`](https://github.com/eea/volto-eea-map/commit/694c3338cbf5c6d9e9f50c3a8dfaacd13d099bdc)]
185
+ - add map & configurations [Andrei Grigore - [`61cfd12`](https://github.com/eea/volto-eea-map/commit/61cfd125b1a230682e817f3728af5379f104c410)]
186
+ - packs fix [Andrei Grigore - [`4eb213a`](https://github.com/eea/volto-eea-map/commit/4eb213a11d95c468e76a5c76db9ae2ced29db6b8)]
187
+ - bootstrap [Andrei Grigore - [`2d16195`](https://github.com/eea/volto-eea-map/commit/2d161953a4e20db079162130cd6f1bf2116c874a)]
188
+ - init eea map block [Andrei Grigore - [`1033ec3`](https://github.com/eea/volto-eea-map/commit/1033ec3af09cc07807f983898a9c2ec63cbc81c6)]
189
+ ### 0.1.0 - 26 July 2022
190
+
191
+ #### :hammer_and_wrench: Others
192
+
193
+ - Initial commit [Andrei Grigore - [`39f2dfc`](https://github.com/eea/volto-eea-map/commit/39f2dfcc5f60451930621e0238a11f710e233371)]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-map",
3
- "version": "0.1.16",
3
+ "version": "0.1.19",
4
4
  "description": "@eeacms/volto-eea-map: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -34,7 +34,7 @@ const Edit = (props) => {
34
34
  });
35
35
  }
36
36
  // eslint-disable-next-line react-hooks/exhaustive-deps
37
- }, [props.data_query, block, data.data_query_params]);
37
+ }, [props.data_query, block, data]);
38
38
 
39
39
  return (
40
40
  <div>
@@ -10,7 +10,7 @@ import Webmap from '../../Webmap';
10
10
  import ExtraViews from '../../ExtraViews';
11
11
 
12
12
  const View = (props) => {
13
- const { data, id, isEdit, map_visualization = {}, data_provenance = {} } =
13
+ const { data, id, isEdit, map_visualization = '', data_provenance = {} } =
14
14
  props || {};
15
15
  const { height = '', vis_url = '', enable_queries } = data;
16
16
 
@@ -24,13 +24,13 @@ const View = (props) => {
24
24
  }, [vis_url, enable_queries]);
25
25
 
26
26
  React.useEffect(() => {
27
+ var altMapData = { ...map_visualization };
27
28
  const query_params = isEdit
28
29
  ? props.data?.data_query_params
29
30
  : props?.data_query;
30
- var altMapData = { ...map_visualization };
31
-
32
31
  if (
33
32
  enable_queries &&
33
+ map_visualization &&
34
34
  query_params &&
35
35
  query_params.length > 0 &&
36
36
  altMapData.layers &&
@@ -38,6 +38,7 @@ const View = (props) => {
38
38
  altMapData.layers.map_layers.length > 0
39
39
  ) {
40
40
  let rules = [];
41
+
41
42
  altMapData.layers.map_layers.forEach((l, j) => {
42
43
  query_params.forEach((param, i) => {
43
44
  const matchingFields =
@@ -1,12 +1,9 @@
1
1
  import React from 'react';
2
- import { Button } from 'semantic-ui-react';
3
2
  import { UniversalLink } from '@plone/volto/components';
4
3
 
5
4
  import LegendWidget from './widgets/LegendWidget';
6
5
  import { serializeNodes } from 'volto-slate/editor/render';
7
6
 
8
- import codeSVG from '../static/code-line.svg';
9
-
10
7
  const ExtraViews = ({ data }) => {
11
8
  const {
12
9
  map_data = {},
@@ -18,34 +15,9 @@ const ExtraViews = ({ data }) => {
18
15
  } = data;
19
16
  return (
20
17
  <div className="extra-eea-map-content">
21
- {map_data && map_data.layers?.map_layers[0] && show_viewer && (
22
- <div
23
- style={{ display: 'flex', justifyContent: 'end', margin: '10px 0' }}
24
- >
25
- {show_viewer && (
26
- <a
27
- target="_blank"
28
- rel="noreferrer"
29
- href={
30
- `https://www.arcgis.com/home/webmap/viewer.html?url=` +
31
- `${map_data.layers.map_layers[0].map_layer.map_service_url}&source=sd`
32
- }
33
- >
34
- <Button size="tiny">
35
- <Button.Content>
36
- <img
37
- className="extra-view-external-button"
38
- src={codeSVG}
39
- alt=""
40
- title="Show API link"
41
- />
42
- </Button.Content>
43
- </Button>
44
- </a>
45
- )}
46
- </div>
18
+ {show_legend && map_data && (
19
+ <LegendWidget data={map_data} show_viewer={show_viewer} />
47
20
  )}
48
- {show_legend && map_data && <LegendWidget data={map_data} />}
49
21
  {show_sources && (
50
22
  <>
51
23
  {data_provenance &&
@@ -14,6 +14,7 @@ const MODULES = [
14
14
  'esri/widgets/Expand',
15
15
  'esri/widgets/Print',
16
16
  'esri/widgets/Zoom',
17
+ 'esri/widgets/ScaleBar',
17
18
  ];
18
19
 
19
20
  const Webmap = (props) => {
@@ -56,6 +57,7 @@ const Webmap = (props) => {
56
57
  Expand,
57
58
  Print,
58
59
  Zoom,
60
+ ScaleBar,
59
61
  ] = modules;
60
62
  setModules({
61
63
  Map,
@@ -67,6 +69,7 @@ const Webmap = (props) => {
67
69
  Expand,
68
70
  Print,
69
71
  Zoom,
72
+ ScaleBar,
70
73
  });
71
74
  });
72
75
  }
@@ -85,6 +88,7 @@ const Webmap = (props) => {
85
88
  Expand,
86
89
  Print,
87
90
  Zoom,
91
+ ScaleBar,
88
92
  } = modules;
89
93
  let layers =
90
94
  map_layers && map_layers.length > 0
@@ -131,6 +135,16 @@ const Webmap = (props) => {
131
135
  components: ['attribution'],
132
136
  },
133
137
  });
138
+ if (general && general.scalebar) {
139
+ const scaleBarWidget = new ScaleBar({
140
+ view: view,
141
+ unit: general.scalebar,
142
+ });
143
+
144
+ view.ui.add(scaleBarWidget, {
145
+ position: 'bottom-left',
146
+ });
147
+ }
134
148
 
135
149
  if (layers && layers[0] && general && general.centerOnExtent) {
136
150
  const firstLayer = layers[0];
@@ -68,6 +68,7 @@ const GeneralSchema = ({ data = {} }) => {
68
68
  fields: [
69
69
  'print_position',
70
70
  'zoom_position',
71
+ 'scalebar',
71
72
  'centerOnExtent',
72
73
  ...(!centerOnExtent ? ['zoom_level', 'long', 'lat'] : []),
73
74
  ],
@@ -80,6 +81,12 @@ const GeneralSchema = ({ data = {} }) => {
80
81
  description:
81
82
  'This will override latitude/longitude/zoom level and will lock zoom/moving the map.',
82
83
  },
84
+ scalebar: {
85
+ title: 'Scalebar',
86
+ choices: ['metric', 'non-metric', 'dual'].map((n) => {
87
+ return [n, n];
88
+ }),
89
+ },
83
90
  zoom_position: {
84
91
  title: 'Zoom position',
85
92
  choices: ['bottom-right', 'bottom-left', 'top-right', 'top-left'].map(
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Grid } from 'semantic-ui-react';
2
+ import { Button, Grid } from 'semantic-ui-react';
3
3
  import { fetchArcGISData, setLegendColumns } from '../../utils';
4
4
  import { Icon } from '@plone/volto/components';
5
5
  import { serializeNodes } from 'volto-slate/editor/render';
@@ -8,10 +8,13 @@ import rightKeySVG from '@plone/volto/icons/right-key.svg';
8
8
  import downKeySVG from '@plone/volto/icons/down-key.svg';
9
9
  import { withDeviceSize } from '../../hocs';
10
10
 
11
- const LayerLegend = ({ data }) => {
11
+ import codeSVG from '../../static/code-line.svg';
12
+
13
+ const LayerLegend = ({ data, show_viewer }) => {
12
14
  const [legendRows, setLegendRows] = React.useState([]);
13
15
 
14
- const { id, name } = data.layer || {};
16
+ const { map_service_url = '', layer = {} } = data;
17
+ const { id, name } = layer || {};
15
18
 
16
19
  const fetchLegend = async (url, activeLayerID) => {
17
20
  let legendData = await fetchArcGISData(url);
@@ -27,16 +30,40 @@ const LayerLegend = ({ data }) => {
27
30
  }
28
31
  // eslint-disable-next-line react-hooks/exhaustive-deps
29
32
  }, [id, data.map_service_url]);
33
+
30
34
  return (
31
35
  <Grid.Column>
32
- <h5
33
- style={{
34
- marginTop: '15px',
35
- marginBottom: '5px',
36
- }}
37
- >
38
- {name}
39
- </h5>
36
+ <div style={{ display: 'flex', alignItems: 'center' }}>
37
+ <h5
38
+ style={{
39
+ marginTop: '15px',
40
+ marginBottom: '5px',
41
+ }}
42
+ >
43
+ {name}
44
+ </h5>
45
+ {show_viewer && map_service_url && (
46
+ <a
47
+ target="_blank"
48
+ rel="noreferrer"
49
+ title="Open ArcGIS Service location"
50
+ href={
51
+ `https://www.arcgis.com/home/webmap/viewer.html?url=` +
52
+ `${map_service_url}&source=sd`
53
+ }
54
+ >
55
+ <Button size="tiny" className="extra-view-external-button">
56
+ <Button.Content>
57
+ <img
58
+ className="extra-view-external-icon"
59
+ src={codeSVG}
60
+ alt=""
61
+ />
62
+ </Button.Content>
63
+ </Button>
64
+ </a>
65
+ )}
66
+ </div>
40
67
  {data.description && serializeNodes(data.description)}
41
68
  <div style={{ display: 'flex', flexDirection: 'column' }}>
42
69
  {legendRows.length > 0 &&
@@ -60,7 +87,7 @@ const LayerLegend = ({ data }) => {
60
87
 
61
88
  const LegendWidget = (props) => {
62
89
  const data = React.useMemo(() => props.data, [props.data]);
63
- const { device = '' } = props;
90
+ const { device = '', show_viewer = false } = props;
64
91
 
65
92
  const [expand, setExpand] = React.useState(true);
66
93
 
@@ -79,14 +106,14 @@ const LegendWidget = (props) => {
79
106
  <>
80
107
  <div className="legend-container">
81
108
  <button className="legend-action" onClick={() => setExpand(!expand)}>
82
- <h4 role="presentation" className="legend-title">
109
+ <h3 role="presentation" className="legend-title">
83
110
  <Icon
84
111
  name={expand ? downKeySVG : rightKeySVG}
85
112
  title={expand ? 'Collapse' : 'Expand'}
86
113
  size="17px"
87
114
  />
88
115
  Legend:
89
- </h4>
116
+ </h3>
90
117
  </button>
91
118
  <Grid columns={legendColumns}>
92
119
  {(!map_layers || map_layers.length === 0) && (
@@ -99,7 +126,11 @@ const LegendWidget = (props) => {
99
126
  {map_layers &&
100
127
  map_layers.length > 0 &&
101
128
  map_layers.map((l, i) => (
102
- <LayerLegend key={i} data={l.map_layer} />
129
+ <LayerLegend
130
+ key={i}
131
+ data={l.map_layer}
132
+ show_viewer={show_viewer}
133
+ />
103
134
  ))}
104
135
  </Grid.Row>
105
136
  )}
@@ -169,12 +169,17 @@
169
169
  display: flex;
170
170
  }
171
171
 
172
- .extra-view-external-button {
172
+ .extra-view-external-icon {
173
173
  color: inherit;
174
+ font-size: 10px;
175
+ }
176
+
177
+ .extra-view-external-button {
178
+ padding: 2px 15px !important;
174
179
  }
175
180
 
176
181
  .legend-action {
177
- padding: 10px;
182
+ padding: 10px 0;
178
183
  border: none;
179
184
  background: transparent;
180
185
  cursor: pointer;