Files
editor/CHANGELOG.md
Bart Louwers 599240033a Handle QuotaExceededError in StyleStore (#1253)
## Launch Checklist

<!-- Thanks for the PR! Feel free to add or remove items from the
checklist. -->

When localStorage is full you start getting a "QuotaExceededError".
RIght now Maputnik does not handle this situation gracefully, it just
fails loading the style with a non-descriptive error message.

This PR purges localStorage and tries again when this particular error
happens.

It still does not show a descriptive error message. If you try to load a
style that is larger than what localStorage can handle, it will still
fail with a non-descriptive error message.

Increased the size of `example-style.json` so that it causes a
QuotaExceededError when running the regression test (try it before and
after this PR).


 - [x] Briefly describe the changes in this PR.
 - [x] Link to related issues. N/A
- [x] Include before/after visuals or gifs if this PR includes visual
changes. N/A
 - [x] Write tests for all new functionality.
 - [x] Add an entry to `CHANGELOG.md` under the `## main` section.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-07-04 10:27:00 +02:00

1.1 KiB

main

Features and improvements

  • Fix radio/delete filter buttons styling regression
  • Add german translation
  • Use same version number for web and desktop versions
  • Add scheme type options for vector/raster tile
  • Add tileSize field for raster and raster-dem tile sources
  • Update Protomaps Light gallery style to v4
  • Add support to edit local files on the file system if supported by the browser
  • Upgrade to MapLibre LG JS v5
  • Upgrade Vite 6 and Cypress 14 (#970)
  • Upgrade OpenLayers from v6 to v10
  • When loading a style into localStorage that causes a QuotaExceededError, purge localStorage and retry
  • ...Add new stuff here...

🐞 Bug fixes

  • Fix incorrect handing of network error response (#944)
  • ...Add new stuff here...

2.1.1

Features and improvements

  • Add GitHub workflows for releasing new versions
  • Update desktop build to pull from this repo (#922)

2.0.0

  • Update MapLibre to version 4 (#872)
  • Start continuous deployment of maputnik website

1.7.0