@eeacms/volto-arcgis-block 0.1.221 → 0.1.222
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,20 @@ 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.222](https://github.com/eea/volto-arcgis-block/compare/0.1.221...0.1.222) - 25 October 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- ready for push [ujbolivar - [`1d00c02`](https://github.com/eea/volto-arcgis-block/commit/1d00c02ac73a24f2179eafbb947cc10ffb19aabb)]
|
|
12
|
+
- ran linting scripts [ujbolivar - [`839258f`](https://github.com/eea/volto-arcgis-block/commit/839258fc2674edd345fb308ad86c33f9e6b8b8c8)]
|
|
13
|
+
- miguel fix added [ujbolivar - [`2f91b36`](https://github.com/eea/volto-arcgis-block/commit/2f91b3642a3d7ec3b9df8163870453d323536f0e)]
|
|
14
|
+
- final lint check before push for hotspot and vector layer update corrections [ujbolivar - [`b1c025c`](https://github.com/eea/volto-arcgis-block/commit/b1c025cd85b231a322d6ab9bde024d622498ec23)]
|
|
15
|
+
- hotspot tabs swaps order based on active layers tab order [ujbolivar - [`b928c3c`](https://github.com/eea/volto-arcgis-block/commit/b928c3ccc8304163ad756e32ecbfb9072a398575)]
|
|
16
|
+
- activelayers are arranged following menu order. Position of dragged layers is preserved [ujbolivar - [`68f1ff4`](https://github.com/eea/volto-arcgis-block/commit/68f1ff43774b6690a7f1f94f12d197f5b518c760)]
|
|
17
|
+
- mods done to hotspot and legends again to cover new edgecases [ujbolivar - [`a1367a3`](https://github.com/eea/volto-arcgis-block/commit/a1367a33fd2184f604182a1c7dffd21e9cb3eed7)]
|
|
18
|
+
- hotspot and legend functions working properly [ujbolivar - [`0f87558`](https://github.com/eea/volto-arcgis-block/commit/0f875580d11ee93ae9919fb7d893dacf360ea7c3)]
|
|
19
|
+
- layers are added and destroyed properly even when pa and klc is unchecked in menuwidget and checked again, it still loads the filtered layer correctly. Legends are acting up after this action as they do not load properly. Next commit will have this feature corrected. [ujbolivar - [`eb6e950`](https://github.com/eea/volto-arcgis-block/commit/eb6e950dc312c1ea3343a29a5d716d183f15b0bd)]
|
|
20
|
+
- hotspot layers are added and removed correctly, still needs a bit of fine tuning, but definitely on track now [ujbolivar - [`240ab62`](https://github.com/eea/volto-arcgis-block/commit/240ab62ca36e561367c66f527d36529024a5a066)]
|
|
7
21
|
### [0.1.221](https://github.com/eea/volto-arcgis-block/compare/0.1.220...0.1.221) - 25 October 2023
|
|
8
22
|
|
|
9
23
|
#### :hammer_and_wrench: Others
|
|
@@ -1031,13 +1045,10 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1031
1045
|
#### :hammer_and_wrench: Others
|
|
1032
1046
|
|
|
1033
1047
|
- Merge pull request #148 from eea/develop [KCarpinteroBM - [`24266fb`](https://github.com/eea/volto-arcgis-block/commit/24266fb3a0c1662d22ae0529dc1d5a25c711cf97)]
|
|
1034
|
-
- Revert "[JENKINS] Use eeacms/plone-backend and Volto alpha version- Refs #151967" [Mikel Larreategi - [`f751f69`](https://github.com/eea/volto-arcgis-block/commit/f751f69f652f0340ae55af6a4dab89d6bdc80906)]
|
|
1035
1048
|
- Revert "Revert "Mapviewer menu and map viewer options persistence"" [Mikel Larreategi - [`ad6e440`](https://github.com/eea/volto-arcgis-block/commit/ad6e440cdc160cffb1e86e1b26e501dbe648476c)]
|
|
1036
1049
|
- Revert "code coverage removal" [Mikel Larreategi - [`376f2d1`](https://github.com/eea/volto-arcgis-block/commit/376f2d1cd6e4e5110b3b63d5114af1bcfebe094b)]
|
|
1037
1050
|
- Revert "Update cypress.json" [Mikel Larreategi - [`43d01a0`](https://github.com/eea/volto-arcgis-block/commit/43d01a0a95a58ef5215c6cbf18223ca30a11b9cc)]
|
|
1038
1051
|
- Revert "Update cypress.json" [Mikel Larreategi - [`054c4ae`](https://github.com/eea/volto-arcgis-block/commit/054c4ae1767e1f26e6ec7e96a0e26a9711f29f04)]
|
|
1039
|
-
- Revert "revert [JENKINS] Use eeacms/plone-backend and Volto alpha version- Refs #151967" [Mikel Larreategi - [`64ab56e`](https://github.com/eea/volto-arcgis-block/commit/64ab56e0f1f8dddc26f26039509a028e34653e64)]
|
|
1040
|
-
- revert [JENKINS] Use eeacms/plone-backend and Volto alpha version- Refs #151967 [Mikel Larreategi - [`85ee194`](https://github.com/eea/volto-arcgis-block/commit/85ee1941e029df2b7dc910bf75231c75ffeca8c2)]
|
|
1041
1052
|
- Update cypress.json [KCarpinteroBM - [`be285ff`](https://github.com/eea/volto-arcgis-block/commit/be285fff0c53e06a0180d5318cce81195eabcf80)]
|
|
1042
1053
|
- Update cypress.json [KCarpinteroBM - [`a7f2118`](https://github.com/eea/volto-arcgis-block/commit/a7f2118acb7b048b4cef85aa9663c2244a1c9ca0)]
|
|
1043
1054
|
- linting fix [KCarpinteroBM - [`27e969a`](https://github.com/eea/volto-arcgis-block/commit/27e969a7a411fd4646e0e742ce846efc0d79703e)]
|
|
@@ -1097,7 +1108,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1097
1108
|
- UX improvements [rodriama - [`151dc4b`](https://github.com/eea/volto-arcgis-block/commit/151dc4b02d0a73fdd66de9d594620ac0fa5f1dbf)]
|
|
1098
1109
|
- deleted failing tests [KCarpinteroBM - [`ddaa9e6`](https://github.com/eea/volto-arcgis-block/commit/ddaa9e6f06db6960a4c214d3be2420c48b26715d)]
|
|
1099
1110
|
- cleaning unnecessary files [KCarpinteroBM - [`2c02199`](https://github.com/eea/volto-arcgis-block/commit/2c021990912beb02b603a1de89aecd62e0063769)]
|
|
1100
|
-
- Reverting to Automated release 0.1.39 [KCarpinteroBM - [`fb9f317`](https://github.com/eea/volto-arcgis-block/commit/fb9f3176ccdea18fceb329eaac13ced0566ee648)]
|
|
1101
1111
|
- commands added [KCarpinteroBM - [`049e60b`](https://github.com/eea/volto-arcgis-block/commit/049e60b7d124d1c05abd0b2775b510795f4ed59f)]
|
|
1102
1112
|
- Mapviewer testing implementation [KCarpinteroBM - [`0103002`](https://github.com/eea/volto-arcgis-block/commit/0103002869eea108e16e3b5ff2e77a725dcc7c4b)]
|
|
1103
1113
|
### [0.1.39](https://github.com/eea/volto-arcgis-block/compare/0.1.38...0.1.39) - 24 March 2022
|
|
@@ -1117,7 +1127,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1117
1127
|
- ESLint fix [rodriama - [`75dae9b`](https://github.com/eea/volto-arcgis-block/commit/75dae9b5bba18ab6d9624f6c99714b4bd2179003)]
|
|
1118
1128
|
- Remove section title [rodriama - [`ece860e`](https://github.com/eea/volto-arcgis-block/commit/ece860eae3519c7e611abac16e8d53c9a9408b34)]
|
|
1119
1129
|
- Es-Lint [manuelmartinezbilbomatica - [`39d8d11`](https://github.com/eea/volto-arcgis-block/commit/39d8d11b9096fd603df8510c119d2e12817415d6)]
|
|
1120
|
-
- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`bf9f683`](https://github.com/eea/volto-arcgis-block/commit/bf9f683dd35a9edb4cfd9111affcb8f8edbeae89)]
|
|
1121
1130
|
- FEAT: Parser Time implemented [manuelmartinezbilbomatica - [`689c99e`](https://github.com/eea/volto-arcgis-block/commit/689c99e55221fee6c7c7fafc4ab95ae7a646d3dd)]
|
|
1122
1131
|
### [0.1.38](https://github.com/eea/volto-arcgis-block/compare/0.1.37...0.1.38) - 18 March 2022
|
|
1123
1132
|
|
|
@@ -1212,7 +1221,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1212
1221
|
- ESLint fix [rodriama - [`5fd3772`](https://github.com/eea/volto-arcgis-block/commit/5fd3772f197a3a380067962a5638dbf901a4624e)]
|
|
1213
1222
|
- Pixel info [rodriama - [`1ccef39`](https://github.com/eea/volto-arcgis-block/commit/1ccef39a9adcc3ee94655c77a5a166b613600a08)]
|
|
1214
1223
|
- NUTS bug fix [rodriama - [`37fe7f3`](https://github.com/eea/volto-arcgis-block/commit/37fe7f3fad2c005e3b7c234b3b0564d5df92fa8c)]
|
|
1215
|
-
- Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`ea5af8b`](https://github.com/eea/volto-arcgis-block/commit/ea5af8b02a5f2ee25b9b0be67cf3792bbbe84ed7)]
|
|
1216
1224
|
### [0.1.23](https://github.com/eea/volto-arcgis-block/compare/0.1.22...0.1.23) - 17 December 2021
|
|
1217
1225
|
|
|
1218
1226
|
#### :hammer_and_wrench: Others
|
|
@@ -1457,7 +1465,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1457
1465
|
- Trying to delay ArcGIS modules load [gonzalezsd - [`ff16985`](https://github.com/eea/volto-arcgis-block/commit/ff169858e42d30bfcacc423ffc27762bb9ef05a4)]
|
|
1458
1466
|
- Run bootstrap to fix files [valentinab25 - [`236893f`](https://github.com/eea/volto-arcgis-block/commit/236893f03314eb638b7667f81b1f91491a98ee17)]
|
|
1459
1467
|
- fix git_name [valentinab25 - [`c7806c3`](https://github.com/eea/volto-arcgis-block/commit/c7806c312964425dc23e5d4c6973de8b81ddaeac)]
|
|
1460
|
-
- Add Sonarqube tag using frontend addons list [EEA Jenkins - [`e3afb51`](https://github.com/eea/volto-arcgis-block/commit/e3afb515dda459ee03e2b5d4b56465d2d4ad1503)]
|
|
1461
1468
|
- Trying to change imports [gonzalezsd - [`d83d7e2`](https://github.com/eea/volto-arcgis-block/commit/d83d7e2f68da4b2a284735847f93c0763a7e13b6)]
|
|
1462
1469
|
- default design [bipoza - [`88fbe0b`](https://github.com/eea/volto-arcgis-block/commit/88fbe0b2bc73e732e2993324a567f53902e85506)]
|
|
1463
1470
|
- cleanup of unused code [bipoza - [`b167677`](https://github.com/eea/volto-arcgis-block/commit/b1676771f637f056cad50cb0bc186f2ea79e8517)]
|
package/package.json
CHANGED
|
@@ -769,8 +769,10 @@ class HotspotWidget extends React.Component {
|
|
|
769
769
|
</div>
|
|
770
770
|
</div>
|
|
771
771
|
<div>
|
|
772
|
-
{divs.map((div) => (
|
|
773
|
-
<div className={div.className}>
|
|
772
|
+
{divs.map((div, i) => (
|
|
773
|
+
<div key={i} className={div.className}>
|
|
774
|
+
{div.func()}
|
|
775
|
+
</div>
|
|
774
776
|
))}
|
|
775
777
|
</div>
|
|
776
778
|
<button
|
|
@@ -65,13 +65,18 @@ class LegendWidget extends React.Component {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
brokenLegendImagePatch() {
|
|
68
|
+
let img = {};
|
|
68
69
|
const collection = document.getElementsByClassName('esri-legend__symbol');
|
|
69
70
|
Array.prototype.forEach.call(collection, (element) => {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
if (element.hasChildNodes()) {
|
|
72
|
+
for (let i = 0; i < element.childNodes.length; i++) {
|
|
73
|
+
let child = element.childNodes[i];
|
|
74
|
+
if (child.nodeName === 'IMG') {
|
|
75
|
+
img = child;
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
} else img = element;
|
|
75
80
|
if (!(img.complete && img.naturalHeight !== 0)) {
|
|
76
81
|
// If img src returns a broken link
|
|
77
82
|
if (img?.src?.includes('all_present_lc_a_pol')) {
|
|
@@ -81,28 +86,13 @@ class LegendWidget extends React.Component {
|
|
|
81
86
|
|
|
82
87
|
img.parentNode.parentNode.parentNode.parentNode.firstElementChild.textContent =
|
|
83
88
|
'Dichotomous Present Land Cover in selected hot spots';
|
|
84
|
-
return;
|
|
85
89
|
} else if (img?.src?.includes('all_present_lc_b_pol')) {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
//find the legend that contains a broken img
|
|
93
|
-
if (
|
|
94
|
-
legend.querySelector('img')?.src?.includes('all_present_lc_b_pol')
|
|
95
|
-
) {
|
|
96
|
-
const img = legend.querySelector('img');
|
|
97
|
-
//set this legend to display none
|
|
98
|
-
if (!(img.complete && img.naturalHeight !== 0)) {
|
|
99
|
-
legend.style.display = 'none';
|
|
100
|
-
}
|
|
101
|
-
break; // break out of the loop after the first match
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
/*img.parentNode.parentNode.parentNode.parentNode.firstElementChild.textContent =
|
|
105
|
-
'Modular Present Land Cover in selected hot spots';*/
|
|
90
|
+
img.src = this.props.hotspotData.all_present_lc[
|
|
91
|
+
'all_present_lc_b_pol'
|
|
92
|
+
].FilterStaticImageLegend;
|
|
93
|
+
|
|
94
|
+
img.parentNode.parentNode.parentNode.parentNode.firstElementChild.textContent =
|
|
95
|
+
'Modular Present Land Cover in selected hot spots';
|
|
106
96
|
} else if (img?.src?.includes('all_lcc_a_pol')) {
|
|
107
97
|
img.src = this.props.hotspotData.all_lcc[
|
|
108
98
|
'all_lcc_a_pol'
|
|
@@ -111,29 +101,25 @@ class LegendWidget extends React.Component {
|
|
|
111
101
|
img.parentNode.parentNode.parentNode.parentNode.firstElementChild.textContent =
|
|
112
102
|
'Dichotomous Land Cover Change in selected hot spots';
|
|
113
103
|
} else if (img?.src?.includes('all_lcc_b_pol')) {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
//find the legend that contains a broken img
|
|
121
|
-
if (legend.querySelector('img')?.src?.includes('all_lcc_b_pol')) {
|
|
122
|
-
const img = legend.querySelector('img');
|
|
123
|
-
//set this legend to display none
|
|
124
|
-
if (!(img.complete && img.naturalHeight !== 0)) {
|
|
125
|
-
legend.style.display = 'none';
|
|
126
|
-
}
|
|
127
|
-
break; // break out of the loop after the first match
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
/*img.parentNode.parentNode.parentNode.parentNode.firstElementChild.textContent =
|
|
131
|
-
'Modular Present Land Cover in selected hot spots';*/
|
|
104
|
+
img.src = this.props.hotspotData.all_lcc[
|
|
105
|
+
'all_lcc_b_pol'
|
|
106
|
+
].FilterStaticImageLegend;
|
|
107
|
+
|
|
108
|
+
img.parentNode.parentNode.parentNode.parentNode.firstElementChild.textContent =
|
|
109
|
+
'Modular Land Cover Change in selected hot spots';
|
|
132
110
|
} else if (img?.src?.includes('cop_klc')) {
|
|
133
|
-
img.src = this.
|
|
111
|
+
img.src = this.props.hotspotData.cop_klc[
|
|
112
|
+
'cop_klc'
|
|
113
|
+
].FilterStaticImageLegend;
|
|
134
114
|
|
|
135
115
|
img.parentNode.parentNode.parentNode.parentNode.firstElementChild.textContent =
|
|
136
116
|
'Key Landscapes for Conservation borders in selected hotspots';
|
|
117
|
+
} else if (img?.src?.includes('protected_areas')) {
|
|
118
|
+
img.src = this.props.hotspotData.protected_areas[
|
|
119
|
+
'protected_areas'
|
|
120
|
+
].FilterStaticImageLegend;
|
|
121
|
+
img.parentNode.parentNode.parentNode.parentNode.firstElementChild.textContent =
|
|
122
|
+
'Protected Areas in Key Landscapes for Conservation borders in selected hot-spots';
|
|
137
123
|
} else if (img.style) {
|
|
138
124
|
img.parentNode.parentNode.parentNode.parentNode.firstElementChild.style.display =
|
|
139
125
|
'none';
|
|
@@ -145,6 +131,15 @@ class LegendWidget extends React.Component {
|
|
|
145
131
|
span.innerHTML = 'No legend available';
|
|
146
132
|
element.parentNode.appendChild(span);
|
|
147
133
|
}
|
|
134
|
+
if (
|
|
135
|
+
img.closest('.esri-legend__service').firstElementChild.nodeName ===
|
|
136
|
+
'H3' &&
|
|
137
|
+
img.closest('.esri-legend__service').firstElementChild.textContent ===
|
|
138
|
+
'WMS'
|
|
139
|
+
) {
|
|
140
|
+
img.closest('.esri-legend__service').firstElementChild.style.display =
|
|
141
|
+
'none';
|
|
142
|
+
}
|
|
148
143
|
}
|
|
149
144
|
});
|
|
150
145
|
}
|
|
@@ -326,8 +326,8 @@ class MenuWidget extends React.Component {
|
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
if (!this.visibleLayers) this.visibleLayers = {};
|
|
329
|
-
this.
|
|
330
|
-
|
|
329
|
+
this.handleRasterVectorLegend();
|
|
330
|
+
this.setState({});
|
|
331
331
|
}
|
|
332
332
|
});
|
|
333
333
|
|
|
@@ -980,8 +980,8 @@ class MenuWidget extends React.Component {
|
|
|
980
980
|
<Popup
|
|
981
981
|
trigger={
|
|
982
982
|
product.ProductId ===
|
|
983
|
-
|
|
984
|
-
product.ProductTitle === 'Snow and Ice Parameters' ? (
|
|
983
|
+
'8474c3b080fa42cc837f1d2338fcf096' /*||
|
|
984
|
+
product.ProductTitle === 'Snow and Ice Parameters' */ ? (
|
|
985
985
|
<div className="zoom-in-message-container">
|
|
986
986
|
<span>{product.ProductTitle}</span>
|
|
987
987
|
<div
|
|
@@ -1001,9 +1001,9 @@ class MenuWidget extends React.Component {
|
|
|
1001
1001
|
style={{ transform: 'translateX(-4rem)' }}
|
|
1002
1002
|
/>
|
|
1003
1003
|
) : product.ProductId ===
|
|
1004
|
-
|
|
1004
|
+
'8474c3b080fa42cc837f1d2338fcf096' /*||
|
|
1005
1005
|
product.ProductTitle ===
|
|
1006
|
-
'High Resolution Snow and Ice Parameters' ? (
|
|
1006
|
+
'High Resolution Snow and Ice Parameters' */ ? (
|
|
1007
1007
|
<div className="zoom-in-message-container">
|
|
1008
1008
|
<span>{product.ProductTitle}</span>
|
|
1009
1009
|
<div className="zoom-in-message">
|
|
@@ -1248,6 +1248,14 @@ class MenuWidget extends React.Component {
|
|
|
1248
1248
|
Zoom in to view on map
|
|
1249
1249
|
</div>
|
|
1250
1250
|
</div>
|
|
1251
|
+
) : dataset.productId ===
|
|
1252
|
+
'd764e020485a402598551fa461bf1db2' ? (
|
|
1253
|
+
<div className="hotspot-filter-message-container">
|
|
1254
|
+
<span>{dataset.DatasetTitle}</span>
|
|
1255
|
+
<div className="hotspot-filter-message hotspot-filter-message-dataset">
|
|
1256
|
+
Use the filter to visualize a KLC area
|
|
1257
|
+
</div>
|
|
1258
|
+
</div>
|
|
1251
1259
|
) : (
|
|
1252
1260
|
<span>{dataset.DatasetTitle}</span>
|
|
1253
1261
|
)
|
|
@@ -1265,6 +1273,14 @@ class MenuWidget extends React.Component {
|
|
|
1265
1273
|
Zoom in to view on map
|
|
1266
1274
|
</div>
|
|
1267
1275
|
</div>
|
|
1276
|
+
) : dataset.productId ===
|
|
1277
|
+
'd764e020485a402598551fa461bf1db2' ? (
|
|
1278
|
+
<div className="hotspot-filter-message-container">
|
|
1279
|
+
<span>{dataset.DatasetTitle}</span>
|
|
1280
|
+
<div className="hotspot-filter-message hotspot-filter-message-dataset">
|
|
1281
|
+
Use the filter to visualize a KLC area
|
|
1282
|
+
</div>
|
|
1283
|
+
</div>
|
|
1268
1284
|
) : (
|
|
1269
1285
|
<span>{dataset.DatasetTitle}</span>
|
|
1270
1286
|
)}
|
|
@@ -1561,7 +1577,7 @@ class MenuWidget extends React.Component {
|
|
|
1561
1577
|
const height = this.tileInfo.size[0];
|
|
1562
1578
|
// create a canvas with 2D rendering context
|
|
1563
1579
|
const canvas = document.createElement('canvas');
|
|
1564
|
-
const context = canvas.getContext('2d');
|
|
1580
|
+
const context = canvas.getContext('2d');
|
|
1565
1581
|
//canvas
|
|
1566
1582
|
canvas.width = width;
|
|
1567
1583
|
canvas.height = height;
|
|
@@ -1871,27 +1887,6 @@ class MenuWidget extends React.Component {
|
|
|
1871
1887
|
if (nuts) {
|
|
1872
1888
|
this.map.reorder(nuts, this.map.layers.items.length + 1);
|
|
1873
1889
|
}
|
|
1874
|
-
//this.props.view //mueve esto
|
|
1875
|
-
// .whenLayerView(this.layers[elem.id])
|
|
1876
|
-
// .then((layerView) => {
|
|
1877
|
-
// layerView.watch('updating', (isUpdating) => {
|
|
1878
|
-
// if (!isUpdating) {
|
|
1879
|
-
// setTimeout(() => {
|
|
1880
|
-
// this.props.loadingHandler(false);
|
|
1881
|
-
// }, 2000);
|
|
1882
|
-
// } else {
|
|
1883
|
-
// }
|
|
1884
|
-
// });
|
|
1885
|
-
// })
|
|
1886
|
-
// .catch((error) => {
|
|
1887
|
-
// let newHotspotData = this.props.hotspotData;
|
|
1888
|
-
// let LayerId = elem.id.replace(/\d+\D*/g, '').slice(0, -1);
|
|
1889
|
-
// let errObj = {};
|
|
1890
|
-
// errObj[LayerId] = error;
|
|
1891
|
-
// newHotspotData['layerViewError'] = errObj;
|
|
1892
|
-
// this.props.hotspotDataHandler(newHotspotData);
|
|
1893
|
-
// this.props.loadingHandler(false);
|
|
1894
|
-
// });
|
|
1895
1890
|
this.checkForHotspots(elem, productContainerId);
|
|
1896
1891
|
} else {
|
|
1897
1892
|
sessionStorage.removeItem('downloadButtonClicked');
|
|
@@ -1921,12 +1916,6 @@ class MenuWidget extends React.Component {
|
|
|
1921
1916
|
this.toggleCustomLegendItem(this.layers[elem.id]);
|
|
1922
1917
|
}
|
|
1923
1918
|
this.activeLayersToHotspotData(elem.id);
|
|
1924
|
-
// update DOM
|
|
1925
|
-
//this.setState({});
|
|
1926
|
-
let checkedLayers = sessionStorage.getItem('checkedLayers');
|
|
1927
|
-
if (checkedLayers && checkedLayers.length === 0) {
|
|
1928
|
-
this.props.loadingHandler(false);
|
|
1929
|
-
}
|
|
1930
1919
|
}
|
|
1931
1920
|
|
|
1932
1921
|
getHotspotLayerIds() {
|
|
@@ -1244,7 +1244,14 @@ input[type='range']::-ms-track {
|
|
|
1244
1244
|
box-shadow: none;
|
|
1245
1245
|
}
|
|
1246
1246
|
|
|
1247
|
-
.
|
|
1247
|
+
.hotspot-filter-message-container,
|
|
1248
|
+
.hotspot-filter-message,
|
|
1249
|
+
.hotspot-filter-message-dataset {
|
|
1250
|
+
display: block;
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
.zoom-in-message,
|
|
1254
|
+
.hotspot-filter-message {
|
|
1248
1255
|
padding: 0.1rem 0.6rem 0.1rem 0.6rem;
|
|
1249
1256
|
margin-top: 0.2rem;
|
|
1250
1257
|
background: #a0b128;
|