mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
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:
1 parent
92d6188045
commit
d1966b9751
2 files changed
+38
-1
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user