refactor(street-level): drop unused tile and pose fields; keep the sequence error on the sequence

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
German KhokhlovandClaude Opus 5.5 committed 2026-10-08 15:03:37 +04:00
1 parent 7411ebaf1c
commit c78c872f92
10 files changed
+32 -60

No files matched your search

+1 -20
View File
@@ -60,7 +60,6 @@ export function createStreetLevelLayer({
photoViewer || createMapillaryViewer({ source, render: services.render }),
});
parts.openImage = openImage;
parts.reportSequenceError = reportSequenceError;
parts.selection = createSelection(context);
let notifyQueued = false;
@@ -81,24 +80,6 @@ export function createStreetLevelLayer({
}
state.notify = notify;
/** The error a sequence lookup last showed, until it withdraws it. */
let sequenceError = null;
/**
* Show a sequence error, or withdraw it (null). A withdrawal clears only
* that error, never a newer one from the viewer.
*/
function reportSequenceError(message) {
if (message) {
state.street.error = sequenceError = message;
} else {
if (!sequenceError) return;
if (state.street.error === sequenceError) state.street.error = null;
sequenceError = null;
}
notify();
}
/** Coverage waits for the key status: no tile requests without a key. */
async function checkKey() {
let configured;
@@ -172,6 +153,7 @@ export function createStreetLevelLayer({
selectedId: state.sequence.selectedId,
images: state.sequence.images.length,
loading: state.sequence.loading,
error: state.sequence.error,
},
street,
};
@@ -228,7 +210,6 @@ export function createStreetLevelLayer({
state.listeners.clear();
state.viewer = null;
state.initialized = false;
state.destroyed = true;
},
getStats() {