@eeacms/volto-eea-map 0.1.16 → 0.1.17
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,8 +4,15 @@ 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)
|
|
8
|
+
|
|
9
|
+
- small fix embed updates on query [`7771f7e`](https://github.com/eea/volto-eea-map/commit/7771f7e417f23e9d5bfce64986fdd7634a916b64)
|
|
10
|
+
|
|
7
11
|
#### [0.1.16](https://github.com/eea/volto-eea-map/compare/0.1.15...0.1.16)
|
|
8
12
|
|
|
13
|
+
> 29 August 2022
|
|
14
|
+
|
|
15
|
+
- Develop [`#16`](https://github.com/eea/volto-eea-map/pull/16)
|
|
9
16
|
- faster update q params for view/edit [`a2d64fb`](https://github.com/eea/volto-eea-map/commit/a2d64fb1112bc129d3183403649a0e5dde822745)
|
|
10
17
|
|
|
11
18
|
#### [0.1.15](https://github.com/eea/volto-eea-map/compare/0.1.14...0.1.15)
|
package/package.json
CHANGED
|
@@ -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 =
|
|
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 =
|