mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-23 11:42:21 +00:00
feat(app): a host names the layers a bare address starts with
createApplicationControls takes startLayers, the layer ids that turn on when the address carries no link (none by default). They restore through the passive start-up path, so they are never written as the user's own choice, and a link's own layers always win.
This commit is contained in:
1 parent
e02f6c6e39
commit
ca98ed1919
6 files changed
+66
-1
No files matched your search
@@ -167,7 +167,10 @@ export class ShareRestoration {
|
||||
feedback,
|
||||
updateFeedback,
|
||||
applyFollowOffset = null,
|
||||
startLayers = [],
|
||||
}) {
|
||||
// The layers a bare address starts with; a link names its own.
|
||||
this._startLayers = startLayers;
|
||||
Object.assign(this, {
|
||||
viewer,
|
||||
navigation,
|
||||
@@ -421,6 +424,7 @@ export class ShareRestoration {
|
||||
// with the default layers. Saved layer choices never come back on
|
||||
// their own, so clearing the address always resets the view.
|
||||
allowLocalState: false,
|
||||
startLayerIds: this._initialShareState ? [] : this._startLayers,
|
||||
});
|
||||
if (this._initialShareSelectionSuperseded) {
|
||||
this._layerStateCoordinator.cancelPendingShareTracking(
|
||||
|
||||
Reference in new issue
Block a user