@eeacms/volto-arcgis-block 0.1.94 → 0.1.95
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,11 @@ 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.95](https://github.com/eea/volto-arcgis-block/compare/0.1.94...0.1.95) - 2 February 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- More filter fixes [masanchez85 - [`bda2ea7`](https://github.com/eea/volto-arcgis-block/commit/bda2ea7d062d33adfa7908f7b29f21b38b25b4b0)]
|
|
7
12
|
### [0.1.94](https://github.com/eea/volto-arcgis-block/compare/0.1.93...0.1.94) - 2 February 2023
|
|
8
13
|
|
|
9
14
|
### [0.1.93](https://github.com/eea/volto-arcgis-block/compare/0.1.92...0.1.93) - 2 February 2023
|
package/package.json
CHANGED
|
@@ -78,6 +78,17 @@ class HotspotWidget extends React.Component {
|
|
|
78
78
|
|
|
79
79
|
handleApplyFilter(typeFilter) {
|
|
80
80
|
if (this.props.selectedLayers) {
|
|
81
|
+
//Clear previous selections when apply a new filter
|
|
82
|
+
var currentLccLayer = Object.keys(this.props.selectedLayers).find((e) =>
|
|
83
|
+
e.includes('lcc_filter'),
|
|
84
|
+
);
|
|
85
|
+
if (currentLccLayer) delete this.props.selectedLayers[currentLccLayer];
|
|
86
|
+
|
|
87
|
+
var currentLcLayer = Object.keys(this.props.selectedLayers).find((e) =>
|
|
88
|
+
e.includes('lc_filter'),
|
|
89
|
+
);
|
|
90
|
+
if (currentLcLayer) delete this.props.selectedLayers[currentLcLayer];
|
|
91
|
+
|
|
81
92
|
var currentLcckey = Object.keys(this.props.selectedLayers).find((e) =>
|
|
82
93
|
e.includes('all_lcc'),
|
|
83
94
|
);
|
|
@@ -115,29 +126,29 @@ class HotspotWidget extends React.Component {
|
|
|
115
126
|
this.props.map.add(this.esriLayer_lcc);
|
|
116
127
|
this.props.selectedLayers['lcc_filter'] = this.esriLayer_lcc;
|
|
117
128
|
this.props.selectedLayers['lcc_filter'].visible = true;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
129
|
+
}
|
|
130
|
+
} else {
|
|
131
|
+
/* var typeLegend =
|
|
132
|
+
document.getElementById('select-klc-highlights-lcc').value ===
|
|
133
|
+
'Dichotomous'
|
|
134
|
+
? 'all_present_lc_a_pol'
|
|
135
|
+
: 'all_present_lc_b_pol'; */
|
|
136
|
+
var selectBoxHighlightsLc = document
|
|
137
|
+
.getElementById('select-klc-lcTime')
|
|
138
|
+
.value.match(/\d+/g)
|
|
139
|
+
.map(Number)[0];
|
|
140
|
+
if (this.esriLayer_lc !== null) {
|
|
141
|
+
//this.esriLayer_lc.sublayers.items[0].name = typeLegend;
|
|
142
|
+
this.esriLayer_lc.customLayerParameters['CQL_FILTER'] =
|
|
143
|
+
'klc_code LIKE ' +
|
|
144
|
+
"'" +
|
|
145
|
+
this.dataKlc_code +
|
|
146
|
+
"'" +
|
|
147
|
+
" AND in_pa = 'not_defined' AND date = " +
|
|
148
|
+
selectBoxHighlightsLc;
|
|
149
|
+
this.props.map.add(this.esriLayer_lc);
|
|
150
|
+
this.props.selectedLayers['lc_filter'] = this.esriLayer_lc;
|
|
151
|
+
this.props.selectedLayers['lc_filter'].visible = true;
|
|
141
152
|
}
|
|
142
153
|
}
|
|
143
154
|
}
|
|
@@ -158,6 +169,11 @@ class HotspotWidget extends React.Component {
|
|
|
158
169
|
*/
|
|
159
170
|
openMenu() {
|
|
160
171
|
if (this.state.showMapMenu) {
|
|
172
|
+
if (this.dataJSONNames)
|
|
173
|
+
this.getKLCNames(
|
|
174
|
+
this.dataJSONNames,
|
|
175
|
+
this.dataJSONNames[0].node.klc_name,
|
|
176
|
+
);
|
|
161
177
|
this.props.mapViewer.setActiveWidget();
|
|
162
178
|
this.container.current.querySelector('.right-panel').style.display =
|
|
163
179
|
'none';
|