@eeacms/volto-arcgis-block 0.1.403 → 0.1.404
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,8 @@ 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.404](https://github.com/eea/volto-arcgis-block/compare/0.1.403...0.1.404) - 5 November 2025
|
|
8
|
+
|
|
7
9
|
### [0.1.403](https://github.com/eea/volto-arcgis-block/compare/0.1.402...0.1.403) - 4 November 2025
|
|
8
10
|
|
|
9
11
|
### [0.1.402](https://github.com/eea/volto-arcgis-block/compare/0.1.401...0.1.402) - 3 November 2025
|
package/package.json
CHANGED
|
@@ -247,18 +247,22 @@ class BookmarkWidget extends React.Component {
|
|
|
247
247
|
this.sessionBookmarks.push(bookmark);
|
|
248
248
|
});
|
|
249
249
|
this.Bookmarks.when(() => {
|
|
250
|
-
|
|
251
|
-
.
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
250
|
+
if (this.userID !== null) {
|
|
251
|
+
document.querySelector('.upload-bookmark-button').style.display =
|
|
252
|
+
'flex';
|
|
253
|
+
document
|
|
254
|
+
.querySelectorAll('.esri-bookmarks__bookmark')
|
|
255
|
+
.forEach((bookmark) => {
|
|
256
|
+
let download_button = document.createElement('button');
|
|
257
|
+
download_button.className = 'esri-button download-bookmark-button';
|
|
258
|
+
download_button.innerText = '⭳';
|
|
259
|
+
download_button.bookmarkName = bookmark.innerText;
|
|
260
|
+
download_button.addEventListener('click', (e) => {
|
|
261
|
+
this.downloadBookmark(e.currentTarget.bookmarkName);
|
|
262
|
+
});
|
|
263
|
+
bookmark.insertBefore(download_button, bookmark.childNodes[2]);
|
|
259
264
|
});
|
|
260
|
-
|
|
261
|
-
});
|
|
265
|
+
}
|
|
262
266
|
this.arcgisEventHandles.push(
|
|
263
267
|
this.Bookmarks.bookmarks.on('change', (e) => {
|
|
264
268
|
if (!this._isMounted) return;
|
|
@@ -804,20 +808,22 @@ class BookmarkWidget extends React.Component {
|
|
|
804
808
|
);
|
|
805
809
|
});
|
|
806
810
|
});
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
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
|
+
}
|
|
821
827
|
}
|
|
822
828
|
componentWillUnmount() {
|
|
823
829
|
this._isMounted = false;
|
|
@@ -1187,7 +1193,8 @@ class BookmarkWidget extends React.Component {
|
|
|
1187
1193
|
}}
|
|
1188
1194
|
type="submit"
|
|
1189
1195
|
>
|
|
1190
|
-
|
|
1196
|
+
<span class="esri-bookmarks__add-bookmark-icon esri-icon-plus"></span>
|
|
1197
|
+
Upload a bookmark
|
|
1191
1198
|
</button>
|
|
1192
1199
|
</div>
|
|
1193
1200
|
</div>
|
|
@@ -289,13 +289,16 @@
|
|
|
289
289
|
color: white !important;
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
-
.upload-bookmark-button {
|
|
292
|
+
button.upload-bookmark-button {
|
|
293
|
+
display: none;
|
|
293
294
|
width: 16rem !important;
|
|
294
295
|
justify-content: start !important;
|
|
296
|
+
padding-left: 3px;
|
|
295
297
|
border-color: #a0b128 !important;
|
|
296
298
|
margin-left: 0.65rem;
|
|
297
299
|
background-color: white !important;
|
|
298
300
|
color: #a0b128 !important;
|
|
301
|
+
font-size: 12px !important;
|
|
299
302
|
}
|
|
300
303
|
|
|
301
304
|
.upload-bookmark-button:hover {
|