mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 10:24:02 +00:00
Assert Street Level expansion timeout and document provider precedence
This commit is contained in:
1 parent
1ee07468c4
commit
893294c7d4
3 files changed
+20
-7
No files matched your search
@@ -5,7 +5,10 @@ An explicit list replaces the default Mapillary provider; an empty list removes
|
||||
all imagery providers. Without that option, Mapillary is registered only when
|
||||
`sources.mapillary` is supplied. An absent source leaves Street Level registered
|
||||
with a truthful no-provider state, preserving layer controls and share tokens.
|
||||
Malformed supplied sources and provider definitions still fail validation.
|
||||
Malformed selected sources and provider definitions still fail validation.
|
||||
An explicit provider list bypasses the unused Mapillary source, including its
|
||||
validation. Layer share identities are preserved; custom provider switches require
|
||||
a corresponding serialization contract.
|
||||
|
||||
## God's Eye View in conversations — October 2, 2026
|
||||
|
||||
|
||||
@@ -622,11 +622,17 @@ async function main() {
|
||||
await target.click(
|
||||
'.panel-collapse-btn[data-collapse-target="street-level-panel"]',
|
||||
);
|
||||
await settle(
|
||||
target,
|
||||
() =>
|
||||
getComputedStyle(document.getElementById('sl-body')).display ===
|
||||
'flex',
|
||||
assert.ok(
|
||||
await settle(
|
||||
target,
|
||||
() =>
|
||||
!document
|
||||
.getElementById('street-level-panel')
|
||||
.classList.contains('collapsed') &&
|
||||
getComputedStyle(document.getElementById('sl-body')).display ===
|
||||
'flex',
|
||||
),
|
||||
'Street Level panel did not expand before the timeout',
|
||||
);
|
||||
};
|
||||
await expandStrip();
|
||||
|
||||
@@ -5,7 +5,11 @@ import * as picking from '../../data/pickRegistry.js';
|
||||
import * as input from '../../data/inputOwnership.js';
|
||||
import * as render from '../../renderGovernor.js';
|
||||
|
||||
/** Inject providers, or use Mapillary only when its source is supplied. */
|
||||
/**
|
||||
* Inject providers, or use Mapillary only when its source is supplied.
|
||||
* An explicit provider list replaces the default; unused sources.mapillary is
|
||||
* neither constructed nor validated, including when the list is empty.
|
||||
*/
|
||||
export function createApplicationStreetLevel({
|
||||
surface,
|
||||
sources = {},
|
||||
|
||||
Reference in new issue
Block a user