@eeacms/volto-eea-map 1.0.1 → 1.0.2
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,7 +4,14 @@ 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
|
-
### [1.0.
|
|
7
|
+
### [1.0.2](https://github.com/eea/volto-eea-map/compare/1.0.1...1.0.2) - 20 July 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- Allow blocks in content type [Tiberiu Ichim - [`2ac09a6`](https://github.com/eea/volto-eea-map/commit/2ac09a613aba07f6cbaf42c386660f2d7d09bd13)]
|
|
12
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`403b4c0`](https://github.com/eea/volto-eea-map/commit/403b4c009e5aaded58203bc292ba3baa4631488b)]
|
|
13
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`aedb654`](https://github.com/eea/volto-eea-map/commit/aedb6544fd45b147a3385425aba46ffba108f5ca)]
|
|
14
|
+
### [1.0.1](https://github.com/eea/volto-eea-map/compare/1.0.0...1.0.1) - 22 June 2023
|
|
8
15
|
|
|
9
16
|
#### :rocket: New Features
|
|
10
17
|
|
package/package.json
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Webmap from '../Webmap';
|
|
3
|
+
import { hasBlocksData } from '@plone/volto/helpers';
|
|
4
|
+
import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
|
|
3
5
|
|
|
4
6
|
const VisualizationView = (props) => {
|
|
5
7
|
const { content = {} } = props;
|
|
@@ -7,8 +9,12 @@ const VisualizationView = (props) => {
|
|
|
7
9
|
const { map_visualization_data = {} } = content;
|
|
8
10
|
|
|
9
11
|
return (
|
|
10
|
-
<div>
|
|
11
|
-
|
|
12
|
+
<div id="page-document" className="view-viewarcgismap">
|
|
13
|
+
{hasBlocksData(content) ? (
|
|
14
|
+
<RenderBlocks {...props} />
|
|
15
|
+
) : (
|
|
16
|
+
<Webmap data={map_visualization_data} />
|
|
17
|
+
)}
|
|
12
18
|
</div>
|
|
13
19
|
);
|
|
14
20
|
};
|
package/src/index.js
CHANGED
|
@@ -7,6 +7,7 @@ import DataQueryWidget from './components/widgets/DataQueryWidget';
|
|
|
7
7
|
import LayerSelectWidget from './components/widgets/LayerSelectWidget';
|
|
8
8
|
|
|
9
9
|
import VisualizationEditorWidget from './components/visualization/VisualizationEditorWidget';
|
|
10
|
+
import VisualizationViewWidget from './components/visualization/VisualizationViewWidget';
|
|
10
11
|
import VisualizationView from './components/visualization/VisualizationView';
|
|
11
12
|
|
|
12
13
|
import SimpleColorPickerWidget from './components/widgets/SimpleColorPickerWidget';
|
|
@@ -61,6 +62,7 @@ export default (config) => {
|
|
|
61
62
|
|
|
62
63
|
//map editor for the visualization(content-type)
|
|
63
64
|
config.widgets.id.map_visualization_data = VisualizationEditorWidget;
|
|
65
|
+
config.widgets.views.id.map_visualization_data = VisualizationViewWidget;
|
|
64
66
|
//map viewer for the visualization(content-type)
|
|
65
67
|
config.views.contentTypesViews.map_visualization = VisualizationView;
|
|
66
68
|
|