Clear a view-bounded layer's error when the camera returns to the drawn view

A failed request for the view in between left its error set, and the
early return for the already drawn view never cleared it, so the drawn
features showed with an error state.
This commit is contained in:
Sameh Khamis committed 2026-11-12 17:57:31 -08:00
1 parent 92d6188045
commit d1966b9751
2 files changed
+38 -1

No files matched your search

+4 -1
View File
@@ -764,9 +764,12 @@ export function createLibraryViewLayer(
// Back on the view already drawn: a request for the view in between is
// obsolete and must not replace it.
if (key === loadedKey && dataSource) {
if (controller) {
// What is drawn is this view's, so an error from the view in between
// no longer applies.
if (controller || error) {
abort();
loading = false;
error = null;
render();
}
return;