@eeacms/volto-arcgis-block 0.1.409 → 0.1.411
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,10 +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.411](https://github.com/eea/volto-arcgis-block/compare/0.1.410...0.1.411) - 26 November 2025
|
|
8
|
+
|
|
9
|
+
### [0.1.410](https://github.com/eea/volto-arcgis-block/compare/0.1.409...0.1.410) - 25 November 2025
|
|
10
|
+
|
|
11
|
+
#### :hammer_and_wrench: Others
|
|
12
|
+
|
|
13
|
+
- (bug): improved extent functionality for HRVPP datasets [Unai Bolivar - [`f74b59f`](https://github.com/eea/volto-arcgis-block/commit/f74b59f28adc57e02332992e48a76809dccad257)]
|
|
14
|
+
- (bug): corrected syntax issue with this.layers search [Unai Bolivar - [`f3f5e4d`](https://github.com/eea/volto-arcgis-block/commit/f3f5e4dc8da458c70a6ec4e4f636a49aec8c3b1a)]
|
|
15
|
+
- (bug): set a hard zoom value for certain datasets to avoid transparent layer views from the store provider. [Unai Bolivar - [`7e5b59e`](https://github.com/eea/volto-arcgis-block/commit/7e5b59e86056e407f87b1155a7ca05518fdd95f0)]
|
|
7
16
|
### [0.1.409](https://github.com/eea/volto-arcgis-block/compare/0.1.408...0.1.409) - 20 November 2025
|
|
8
17
|
|
|
9
18
|
#### :hammer_and_wrench: Others
|
|
10
19
|
|
|
20
|
+
- Merge pull request #1060 from eea/develop [Unai Bolivar - [`c43d87e`](https://github.com/eea/volto-arcgis-block/commit/c43d87e730d1635e9e5ce99f13e7c4e936980131)]
|
|
11
21
|
- Merge pull request #1059 from eea/CLMS-293228 [Unai Bolivar - [`b4b62d5`](https://github.com/eea/volto-arcgis-block/commit/b4b62d570f56f4264417e83612c10e7beae3c3ca)]
|
|
12
22
|
- (bug): change font sizes for titles final [Unai Bolivar - [`083bf44`](https://github.com/eea/volto-arcgis-block/commit/083bf44f0e8024350f21b6fda30abb26ed54513b)]
|
|
13
23
|
- (bug): change font sizes for titles again [Unai Bolivar - [`bc267fe`](https://github.com/eea/volto-arcgis-block/commit/bc267fe92dba4b319d1225217d88b0a30c9a3554)]
|
package/package.json
CHANGED
|
@@ -352,7 +352,7 @@ class BookmarkWidget extends React.Component {
|
|
|
352
352
|
? bookmarks.selectedHotspotFilter
|
|
353
353
|
: null,
|
|
354
354
|
};
|
|
355
|
-
let filename = 'bookmark_' + selectedBookmark.items
|
|
355
|
+
let filename = 'bookmark_' + selectedBookmark.items?.name;
|
|
356
356
|
const blob = new Blob(
|
|
357
357
|
[JSON.stringify(selectedBookmark)],
|
|
358
358
|
{
|
|
@@ -1198,22 +1198,28 @@ class BookmarkWidget extends React.Component {
|
|
|
1198
1198
|
);
|
|
1199
1199
|
} catch (e) {}
|
|
1200
1200
|
this.loadBookmarksToWidget();
|
|
1201
|
-
this.Bookmarks
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1201
|
+
if (this.Bookmarks && this.Bookmarks.bookmarks) {
|
|
1202
|
+
const mapped = this.sessionBookmarks.map((bm) => {
|
|
1203
|
+
if (bm && bm.extent) {
|
|
1204
|
+
const { extent, ...rest } = bm;
|
|
1205
|
+
let geometry;
|
|
1206
|
+
if (extent && typeof extent === 'object') {
|
|
1207
|
+
geometry = extent.type ? extent : new Extent(extent);
|
|
1208
|
+
}
|
|
1209
|
+
return {
|
|
1210
|
+
...rest,
|
|
1211
|
+
viewpoint: { targetGeometry: geometry },
|
|
1212
|
+
};
|
|
1207
1213
|
}
|
|
1208
|
-
return
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
}
|
|
1214
|
+
return bm;
|
|
1215
|
+
});
|
|
1216
|
+
this.Bookmarks.bookmarks.removeAll();
|
|
1217
|
+
mapped.forEach((item) => this.Bookmarks.bookmarks.add(item));
|
|
1218
|
+
this.sessionBookmarks = [];
|
|
1219
|
+
this.Bookmarks.bookmarks.items.forEach((bookmark) => {
|
|
1220
|
+
this.sessionBookmarks.push(bookmark);
|
|
1221
|
+
});
|
|
1222
|
+
}
|
|
1217
1223
|
};
|
|
1218
1224
|
reader.readAsText(file);
|
|
1219
1225
|
}
|
|
@@ -4039,7 +4039,21 @@ class MenuWidget extends React.Component {
|
|
|
4039
4039
|
ymax: BBoxes['dataset'].ymax,
|
|
4040
4040
|
});
|
|
4041
4041
|
}
|
|
4042
|
-
|
|
4042
|
+
if (
|
|
4043
|
+
this.layers[elem.id].DatasetId === '65f8eded11d94a1ba5540ceecaddd4e6' ||
|
|
4044
|
+
this.layers[elem.id].DatasetId === '40e056d02eed4c1fb2040cf0f06823df'
|
|
4045
|
+
) {
|
|
4046
|
+
let myExtent = new Extent({
|
|
4047
|
+
xmin: -13478905.5678019,
|
|
4048
|
+
ymin: 23797904.386302948,
|
|
4049
|
+
xmax: 20538395.093334593,
|
|
4050
|
+
ymax: 11175665.272476234,
|
|
4051
|
+
spatialReference: 3857,
|
|
4052
|
+
});
|
|
4053
|
+
this.view.goTo({ center: myExtent.center, zoom: 3 });
|
|
4054
|
+
} else {
|
|
4055
|
+
this.view.goTo(myExtent);
|
|
4056
|
+
}
|
|
4043
4057
|
}
|
|
4044
4058
|
|
|
4045
4059
|
async fullExtent(elem) {
|
|
@@ -4059,6 +4073,7 @@ class MenuWidget extends React.Component {
|
|
|
4059
4073
|
}
|
|
4060
4074
|
let BBoxes = {};
|
|
4061
4075
|
let firstLayer;
|
|
4076
|
+
let myExtent = null;
|
|
4062
4077
|
let landCoverAndLandUseMapping = document.querySelector('#component_0');
|
|
4063
4078
|
let productIds = [];
|
|
4064
4079
|
if (
|
|
@@ -4265,14 +4280,27 @@ class MenuWidget extends React.Component {
|
|
|
4265
4280
|
} else {
|
|
4266
4281
|
firstLayer = BBoxes[elem.attributes.layerid.value];
|
|
4267
4282
|
}
|
|
4268
|
-
|
|
4269
|
-
let myExtent = new Extent({
|
|
4283
|
+
myExtent = new Extent({
|
|
4270
4284
|
xmin: firstLayer.xmin,
|
|
4271
4285
|
ymin: firstLayer.ymin,
|
|
4272
4286
|
xmax: firstLayer.xmax,
|
|
4273
4287
|
ymax: firstLayer.ymax,
|
|
4274
4288
|
});
|
|
4275
|
-
|
|
4289
|
+
if (
|
|
4290
|
+
this.layers[elem.id].DatasetId === '65f8eded11d94a1ba5540ceecaddd4e6' ||
|
|
4291
|
+
this.layers[elem.id].DatasetId === '40e056d02eed4c1fb2040cf0f06823df'
|
|
4292
|
+
) {
|
|
4293
|
+
let myExtent = new Extent({
|
|
4294
|
+
xmin: -13478905.5678019,
|
|
4295
|
+
ymin: 23797904.386302948,
|
|
4296
|
+
xmax: 20538395.093334593,
|
|
4297
|
+
ymax: 11175665.272476234,
|
|
4298
|
+
spatialReference: 3857,
|
|
4299
|
+
});
|
|
4300
|
+
this.view.goTo({ center: myExtent.center, zoom: 3 });
|
|
4301
|
+
} else {
|
|
4302
|
+
this.view.goTo(myExtent);
|
|
4303
|
+
}
|
|
4276
4304
|
}
|
|
4277
4305
|
this.url = null;
|
|
4278
4306
|
}
|