A link to only a view opens with the opening too, stopping at that view

The app writes its view into the address, so a reload or a bookmark is a
share link and opened without the opening. A start-up share whose camera
landed and that follows or selects nothing now plays it as well, ending
where the link points; the share restore says when the share is of a thing.

The flight turns to the target's heading and pitch over its last part, so a
view at an angle is reached without a jump. A camera held in a target's
frame plays no opening.
This commit is contained in:
German Khokhlov committed 2026-11-23 16:08:30 +04:00
1 parent 9088c01d1a
commit 31ce6cbf79
6 files changed
+120 -25

No files matched your search

+10 -1
View File
@@ -324,7 +324,16 @@ export class ShareRestoration {
if (vessel) void this._restoreSharedVessel(vessel, current);
// The token tells listeners whether anyone navigated after the
// restore's flight landed (while the layers were still loading).
settle({ status: 'settled', share, layers, tracking, navigationToken });
// `thing` says the share is of a thing (a followed or selected one),
// not only a view.
settle({
status: 'settled',
share,
layers,
tracking,
navigationToken,
thing: state?.shareView?.kind === 'thing',
});
} catch (error) {
if (!current()) return;
this.shareLinkManager.completeInitialRestore(state.restoreToken);