mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +00:00
Release God's Eye View as open source
This commit is contained in:
1 parent
a5aaea7e16
commit
880a672b5e
433 files changed
+219893
-23
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user