Skip to content

Feature: Empty Map Cache#18

Merged
hgosalia merged 1 commit into
mainfrom
features/empty-cache-option
May 20, 2026
Merged

Feature: Empty Map Cache#18
hgosalia merged 1 commit into
mainfrom
features/empty-cache-option

Conversation

@hgosalia
Copy link
Copy Markdown
Member

No description provided.

@github-actions
Copy link
Copy Markdown

📋 PR Summary

Title: Feature: Empty Map Cache
Author: @hgosalia
Draft: No
8 files changed: +121 additions, -51 deletions

Description

This PR introduces a new feature that allows users to clear the cached map tiles from their disk through a new "Empty Map Cache" option in the settings menu. The functionality is implemented in the emptyTileCache function, which prompts the user for confirmation before deleting all cached tiles and also clears the Service Worker cache to prevent stale tiles from being served. Additionally, the MapLibre GL JS library has been updated from version 4.5.0 to 5.24.0, which may enhance performance and features related to map rendering. The removal of the exif-js dependency indicates a shift away from using that library, potentially simplifying the codebase and reducing bundle size. Overall, these changes improve user control over cached data and modernize the mapping capabilities of the application.

Files

  • .gitignore — +1/-0
  • LICENSE — +2/-5
  • README.md — Updated (+31/-16)
  • dependencies.json — Updated (+0/-8)
  • index.html — +4/-1
  • js/data.js — New: emptyTileCache. Modified: _decompressGzip
  • js/map.js — Modified: _patchStyleWater
  • serve.py — New: _evict_tiles_if_needed, _clear_tile_cache. Modified: ensure_photos_dir, do_POST, _video_abort

@hgosalia hgosalia merged commit 089a471 into main May 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant