mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-13 06:42:23 +00:00
feat(search): compose Google and Photon through an explicit provider service
This commit is contained in:
commit
57d7f9fc23
30 files changed
+1621
-151
No files matched your search
@@ -194,11 +194,11 @@ export function silenceRadioForVoice({ duckRadio, pauseRadio } = {}) {
|
||||
*/
|
||||
const SUPERSEDED_RESPONSE_MEMORY = 8;
|
||||
|
||||
export function initGevVoiceCommands({ viewer, styleManager, dataManager, sceneDirector = null, annotations = null }) {
|
||||
export function initGevVoiceCommands({ viewer, styleManager, dataManager, sceneDirector = null, annotations = null, placeSearch }) {
|
||||
if (window.__gevVoiceCommands && typeof window.__gevVoiceCommands.stop === 'function') {
|
||||
window.__gevVoiceCommands.stop({ removeUi: true });
|
||||
}
|
||||
const runner = createGevActionRunner({ viewer, styleManager, dataManager, sceneDirector, annotations });
|
||||
const runner = createGevActionRunner({ viewer, styleManager, dataManager, sceneDirector, annotations, placeSearch });
|
||||
const ui = createVoiceControl({ reset: true });
|
||||
const radioLayer = dataManager?.layers?.get('radio')?.module || null;
|
||||
const controller = new GevRealtimeController({ runner, ui, radioLayer, dataManager });
|
||||
|
||||
Reference in new issue
Block a user