hide file

This commit is contained in:
vcoppe
2024-06-19 18:11:05 +02:00
parent 40a6eb5192
commit 06bc49901d
5 changed files with 71 additions and 10 deletions

View File

@@ -255,6 +255,19 @@ export function exportFile(file: GPXFile) {
URL.revokeObjectURL(url);
}
export function toggleSelectionVisibility() {
let files = new Set<string>();
get(selection).forEach((item) => {
files.add(item.getFileId());
});
files.forEach((fileId) => {
let layer = gpxLayers.get(fileId);
if (layer) {
layer.toggleVisibility();
}
});
}
let stravaCookies: any = null;
function refreshStravaCookies() {
/*