@eeacms/volto-eea-map 0.1.17 → 0.1.20

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