mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Merge main and switch Cesium and Navara in place through Vue
Preserve the camera, map source and layer selection across engine sessions. Restore the previous engine if startup fails and retain local history navigation.
This commit is contained in:
commit
b8f4d097c4
1691 files changed
+225876
-41594
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { nearbyContact } from './pickRegistry.js';
|
||||
// One selection dispatcher for the layers that have moved onto the globe
|
||||
// engine (phase 3 Task 4): one click subscription with picks
|
||||
// (engine.input.on('click', …, { pick: true, drill: 8 })), the press
|
||||
@@ -117,6 +118,12 @@ export function createSelectionDispatcher(
|
||||
const gesture = completed ?? { travelPx: 0, durationMs: 0 };
|
||||
completed = null;
|
||||
if (!isPointerFree()) return;
|
||||
const picked = nearbyContact(
|
||||
event.picked,
|
||||
event.position,
|
||||
engine.picker?.drillPick,
|
||||
);
|
||||
if (picked !== event.picked) event = { ...event, picked };
|
||||
const ctx = {
|
||||
position: event.position,
|
||||
picked: event.picked,
|
||||
|
||||
Reference in new issue
Block a user