@eeacms/volto-arcgis-block 0.1.259 → 0.1.261

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,6 +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
+ ### [0.1.261](https://github.com/eea/volto-arcgis-block/compare/0.1.260...0.1.261) - 21 February 2024
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - CLMS-3071 (Bug): package [Urkorue - [`159e7d0`](https://github.com/eea/volto-arcgis-block/commit/159e7d02d373b83f93a108e5945071a132af3fc0)]
12
+ - CLMS-3071 (Bug): Marker removed on close [Urkorue - [`7e8ec19`](https://github.com/eea/volto-arcgis-block/commit/7e8ec19c1014c7be1375e29825eb6e488d6f0369)]
13
+ ### [0.1.260](https://github.com/eea/volto-arcgis-block/compare/0.1.259...0.1.260) - 15 February 2024
14
+
7
15
  ### [0.1.259](https://github.com/eea/volto-arcgis-block/compare/0.1.258...0.1.259) - 14 February 2024
8
16
 
9
17
  ### [0.1.258](https://github.com/eea/volto-arcgis-block/compare/0.1.257...0.1.258) - 12 February 2024
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-arcgis-block",
3
- "version": "0.1.259",
3
+ "version": "0.1.261",
4
4
  "description": "volto-arcgis-block: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: CodeSyntax",
@@ -3063,11 +3063,34 @@ class MenuWidget extends React.Component {
3063
3063
  });
3064
3064
  if (layers.length === 0 && document.querySelector('.info-container')) {
3065
3065
  document.querySelector('.info-container').style.display = 'none';
3066
- document
3067
- .querySelector('.esri-ui-top-right.esri-ui-corner')
3068
- .classList.remove('show-panel');
3066
+ if (
3067
+ this.props.view.graphics.items.find((a) => {
3068
+ return a.attributes ? a.attributes.id === 'pixel-info' : false;
3069
+ })
3070
+ ) {
3071
+ let marker = this.props.view.graphics.items.find((a) => {
3072
+ return a.attributes && a.attributes.id === 'pixel-info';
3073
+ });
3074
+ this.props.view.graphics.remove(marker);
3075
+ }
3076
+ if (
3077
+ this.props.mapViewer.activeWidget?.container.current.className ===
3078
+ 'info-container esri-component'
3079
+ ) {
3080
+ document
3081
+ .querySelector('.esri-ui-top-right.esri-ui-corner')
3082
+ .classList.remove('show-panel');
3083
+ }
3069
3084
  } else if (layers.length > 0) {
3070
3085
  document.querySelector('.info-container').style.display = 'flex';
3086
+ if (
3087
+ this.props.mapViewer.activeWidget?.container.current.className ===
3088
+ 'info-container esri-component'
3089
+ ) {
3090
+ document
3091
+ .querySelector('.esri-ui-top-right.esri-ui-corner')
3092
+ .classList.add('show-panel');
3093
+ }
3071
3094
  }
3072
3095
  }
3073
3096