Release God's Eye View as open source

This commit is contained in:
Bilawal Sidhu committed 2026-08-24 17:02:16 -05:00
1 parent a5aaea7e16
commit 880a672b5e
433 files changed
+219893 -23

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
import { createAnnotationEngine } from './annotationEngine.js';
import { createHybridAnnotationRenderer } from './hybridAnnotationRenderer.js';
/**
* Initialize the map-annotation engine and expose it for the voice agent and
* for manual/dev use via `window.__gevAnnotations`.
*
* This module is the single swap point between annotation rendering strategies.
* The HYBRID renderer uses world-space draping for
* footprints + screen-space SVG for callouts/rings/arrows. The engine, resolver,
* and voice tool wiring are shared across rendering strategies.
*/
export function initAnnotations({ viewer, tileset = null }) {
// World-space footprint draping; clamped marks can use the photoreal tiles.
if (tileset) {
try { tileset.enableCollision = true; } catch { /* older tileset */ }
}
const renderer = createHybridAnnotationRenderer(viewer);
const engine = createAnnotationEngine({ viewer, renderer });
window.__gevAnnotations = engine;
return engine;
}