Move Directions routes and active camera flights between globes

This commit is contained in:
German Khokhlov committed 2026-11-03 03:44:07 +04:00
1 parent 5cea3e8cbb
commit 605b9490f3
12 files changed
+568 -63

No files matched your search

+4 -2
View File
@@ -1,6 +1,8 @@
import { createApplicationDirectionsLayer } from '../../data/directions.js';
import { rendererFor } from './renderers.js';
/** Construct Directions with application scene owners and an explicit route source. */
export function createApplicationDirections({ source }) {
return createApplicationDirectionsLayer({ source });
export function createApplicationDirections({ source, surface }) {
return createApplicationDirectionsLayer({ source, groundFloor: surface?.groundFloor, createNativeRenderer: (engine) => rendererFor('directions', engine) });
}