@eeacms/volto-arcgis-block 0.1.404 → 0.1.405
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,8 +4,13 @@ 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.405](https://github.com/eea/volto-arcgis-block/compare/0.1.404...0.1.405) - 12 November 2025
|
|
8
|
+
|
|
7
9
|
### [0.1.404](https://github.com/eea/volto-arcgis-block/compare/0.1.403...0.1.404) - 5 November 2025
|
|
8
10
|
|
|
11
|
+
#### :hammer_and_wrench: Others
|
|
12
|
+
|
|
13
|
+
- Merge pull request #1050 from eea/develop [Unai Bolivar - [`0708eba`](https://github.com/eea/volto-arcgis-block/commit/0708ebafa517a330ecc02ec7ad073b67cdb9f60d)]
|
|
9
14
|
### [0.1.403](https://github.com/eea/volto-arcgis-block/compare/0.1.402...0.1.403) - 4 November 2025
|
|
10
15
|
|
|
11
16
|
### [0.1.402](https://github.com/eea/volto-arcgis-block/compare/0.1.401...0.1.402) - 3 November 2025
|
package/package.json
CHANGED
|
@@ -253,15 +253,53 @@ class BookmarkWidget extends React.Component {
|
|
|
253
253
|
document
|
|
254
254
|
.querySelectorAll('.esri-bookmarks__bookmark')
|
|
255
255
|
.forEach((bookmark) => {
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
256
|
+
if (bookmark.childNodes.length < 4) {
|
|
257
|
+
let tooltip = document.createElement('div');
|
|
258
|
+
tooltip.setAttribute('tooltip', 'Download bookmark');
|
|
259
|
+
tooltip.setAttribute('direction', 'left');
|
|
260
|
+
tooltip.setAttribute('type', 'widget');
|
|
261
|
+
let download_button = document.createElement('div');
|
|
262
|
+
tooltip.appendChild(download_button);
|
|
263
|
+
download_button.className =
|
|
264
|
+
'esri-button download-bookmark-button';
|
|
265
|
+
download_button.innerText = '⭳';
|
|
266
|
+
download_button.bookmarkName = bookmark.innerText;
|
|
267
|
+
download_button.addEventListener('click', (e) => {
|
|
268
|
+
this.downloadBookmark(e.currentTarget.bookmarkName);
|
|
269
|
+
});
|
|
270
|
+
bookmark.insertBefore(tooltip, bookmark.childNodes[2]);
|
|
271
|
+
}
|
|
264
272
|
});
|
|
273
|
+
let bookmarkList = document.querySelector('.esri-bookmarks__list');
|
|
274
|
+
const config = { childList: true };
|
|
275
|
+
const callback = function (mutationList, observer) {
|
|
276
|
+
for (const mutation of mutationList) {
|
|
277
|
+
if (mutation.type === 'childList') {
|
|
278
|
+
document
|
|
279
|
+
.querySelectorAll('.esri-bookmarks__bookmark')
|
|
280
|
+
.forEach((bookmark) => {
|
|
281
|
+
if (bookmark.childNodes.length < 4) {
|
|
282
|
+
let tooltip = document.createElement('div');
|
|
283
|
+
tooltip.setAttribute('tooltip', 'Download bookmark');
|
|
284
|
+
tooltip.setAttribute('direction', 'left');
|
|
285
|
+
tooltip.setAttribute('type', 'widget');
|
|
286
|
+
let download_button = document.createElement('div');
|
|
287
|
+
tooltip.appendChild(download_button);
|
|
288
|
+
download_button.className =
|
|
289
|
+
'esri-button download-bookmark-button';
|
|
290
|
+
download_button.innerText = '⭳';
|
|
291
|
+
download_button.bookmarkName = bookmark.innerText;
|
|
292
|
+
download_button.addEventListener('click', (e) => {
|
|
293
|
+
this.downloadBookmark(e.currentTarget.bookmarkName);
|
|
294
|
+
});
|
|
295
|
+
bookmark.insertBefore(tooltip, bookmark.childNodes[2]);
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
const observer = new MutationObserver(callback);
|
|
302
|
+
observer.observe(bookmarkList, config);
|
|
265
303
|
}
|
|
266
304
|
this.arcgisEventHandles.push(
|
|
267
305
|
this.Bookmarks.bookmarks.on('change', (e) => {
|
|
@@ -808,22 +846,6 @@ class BookmarkWidget extends React.Component {
|
|
|
808
846
|
);
|
|
809
847
|
});
|
|
810
848
|
});
|
|
811
|
-
if (this.userID !== null) {
|
|
812
|
-
document
|
|
813
|
-
.querySelectorAll('.esri-bookmarks__bookmark')
|
|
814
|
-
.forEach((bookmark) => {
|
|
815
|
-
if (bookmark.childNodes.length < 4) {
|
|
816
|
-
let download_button = document.createElement('button');
|
|
817
|
-
download_button.className = 'esri-button download-bookmark-button';
|
|
818
|
-
download_button.innerText = '⭳';
|
|
819
|
-
download_button.bookmarkName = bookmark.innerText;
|
|
820
|
-
download_button.addEventListener('click', (e) => {
|
|
821
|
-
this.downloadBookmark(e.currentTarget.bookmarkName);
|
|
822
|
-
});
|
|
823
|
-
bookmark.insertBefore(download_button, bookmark.childNodes[2]);
|
|
824
|
-
}
|
|
825
|
-
});
|
|
826
|
-
}
|
|
827
849
|
}
|
|
828
850
|
componentWillUnmount() {
|
|
829
851
|
this._isMounted = false;
|