@eeacms/volto-arcgis-block 0.1.204 → 0.1.206
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.206](https://github.com/eea/volto-arcgis-block/compare/0.1.205...0.1.206) - 26 September 2023
|
|
8
|
+
|
|
9
|
+
### [0.1.205](https://github.com/eea/volto-arcgis-block/compare/0.1.204...0.1.205) - 25 September 2023
|
|
10
|
+
|
|
11
|
+
#### :hammer_and_wrench: Others
|
|
12
|
+
|
|
13
|
+
- Dynamic Land Cover Json update (lint) [masanchez85 - [`c1a9c1d`](https://github.com/eea/volto-arcgis-block/commit/c1a9c1dfdd94c02460d85921a60e0fb1a4850023)]
|
|
14
|
+
- Dynamic Land Cover Json update [masanchez85 - [`d2f9f02`](https://github.com/eea/volto-arcgis-block/commit/d2f9f02d2e9b267e28505df914b5c3d64806a441)]
|
|
7
15
|
### [0.1.204](https://github.com/eea/volto-arcgis-block/compare/0.1.203...0.1.204) - 22 September 2023
|
|
8
16
|
|
|
9
17
|
### [0.1.203](https://github.com/eea/volto-arcgis-block/compare/0.1.202...0.1.203) - 21 September 2023
|
package/package.json
CHANGED
|
@@ -1433,10 +1433,10 @@ class MenuWidget extends React.Component {
|
|
|
1433
1433
|
processTMSLayer(layer, checkboxId, dataset) {
|
|
1434
1434
|
let selectedUrl;
|
|
1435
1435
|
let zoom = this.view.get('zoom');
|
|
1436
|
-
if (
|
|
1436
|
+
if (layer.LayerUrl && Object.keys(layer.LayerUrl).length > 0) {
|
|
1437
1437
|
zoom < 10
|
|
1438
|
-
? (selectedUrl = layer.LayerUrl[
|
|
1439
|
-
: (selectedUrl = layer.LayerUrl[
|
|
1438
|
+
? (selectedUrl = layer.LayerUrl['longZoom'])
|
|
1439
|
+
: (selectedUrl = layer.LayerUrl['shortZoom']);
|
|
1440
1440
|
} else selectedUrl = layer.LayerUrl;
|
|
1441
1441
|
const CustomTileLayer = BaseTileLayer.createSubclass({
|
|
1442
1442
|
properties: {
|
|
@@ -1509,7 +1509,7 @@ class MenuWidget extends React.Component {
|
|
|
1509
1509
|
selectedUrl,
|
|
1510
1510
|
);
|
|
1511
1511
|
if (customTileLayer === null || customTileLayer === undefined) return;
|
|
1512
|
-
if (this.layers[checkboxId]) {
|
|
1512
|
+
if (this.layers[checkboxId] && this.activeLayersJSON[checkboxId]) {
|
|
1513
1513
|
if (customTileLayer.urlTemplate !== this.layers[checkboxId].urlTemplate) {
|
|
1514
1514
|
this.map.remove(this.layers[checkboxId]);
|
|
1515
1515
|
this.layers[checkboxId] = customTileLayer;
|
|
@@ -3006,7 +3006,10 @@ class MenuWidget extends React.Component {
|
|
|
3006
3006
|
*/
|
|
3007
3007
|
eyeLayer(elem) {
|
|
3008
3008
|
this.findCheckedDataset(elem);
|
|
3009
|
-
if (
|
|
3009
|
+
if (
|
|
3010
|
+
this.visibleLayers[elem.id] &&
|
|
3011
|
+
this.visibleLayers[elem.id][1] === 'eye'
|
|
3012
|
+
) {
|
|
3010
3013
|
this.layers[elem.id].visible = false;
|
|
3011
3014
|
this.visibleLayers[elem.id] = ['fas', 'eye-slash'];
|
|
3012
3015
|
if (this.layers['lcc_filter'] && elem.id.includes('all_lcc')) {
|