mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
feat(street-level): "show me X on Street View" action, street_level view field and sl= links
show_street_level (voice and typed) flies to a place and opens its nearest street-level photo from Google Street View, Mapillary, KartaView or Panoramax; Street View switches to Google 3D first. The view model gains a street_level field, share links carry sl=<source>,<lat>,<lon>, and show_in_gods_eye_view can open a photo. A plain sl=google link only arms the point and waits for OPEN, so it never bills a key without a click. Embed pages show an open photo in an overlay that Esc closes. On-screen strings are translated into es, ru, zh-CN and zh-Hant. Covered by unit tests and three new steps in the Street Level browser suite.
This commit is contained in:
1 parent
f3adccd01a
commit
98de41c94a
64 files changed
+4147
-66
No files matched your search
@@ -115,3 +115,17 @@ test('OPEN STREET VIEW keeps its width beside a long coverage line', () => {
|
||||
);
|
||||
assert.match(panelCss, /\.sl-meta-row \.sl-meta \{[^}]*min-width: 0;/);
|
||||
});
|
||||
|
||||
test('embed mode shows an open photo over the globe, filling the overlay', () => {
|
||||
const overlay = css.match(
|
||||
/body\.ui-embed \.sl-viewer-wrap-embed \{([^}]*)\}/,
|
||||
);
|
||||
assert.ok(overlay, 'embed styles the viewer it moves over the globe');
|
||||
for (const rule of ['position: fixed', 'inset: 12px', 'z-index: 1000'])
|
||||
assert.ok(overlay[1].includes(rule), rule);
|
||||
// The photo takes the overlay's height, as it does full screen.
|
||||
assert.match(
|
||||
css,
|
||||
/body\.ui-embed \.sl-viewer-wrap-embed \.sl-viewer \{[^}]*flex: 1 1 auto/,
|
||||
);
|
||||
});
|
||||
Reference in new issue
Block a user