browser: preview: fix invalidate all parts

It is called when changes dark/light mode,
reset the fetch property to false.

Change-Id: Id8de5245d56405624ebe72b5655d37b52892f654
Signed-off-by: Henry Castro <hcastro@collabora.com>
pull/9027/head
Henry Castro 2024-05-10 14:59:43 -04:00 committed by Caolán McNamara
parent aa9ee925f8
commit a4d316f2ff
1 changed files with 1 additions and 0 deletions

View File

@ -808,6 +808,7 @@ L.Control.PartsPreview = L.Control.extend({
return;
for (var part = 0; part < this._previewTiles.length; part++) {
this._previewTiles[part].fetched = false;
this._map.getPreview(part, part,
this.options.maxWidth,
this.options.maxHeight,