mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 10:24:02 +00:00
fix(import): fly to points-only files without going underground
viewer.flyTo frames ground-clamped billboards before the destination's terrain has loaded, and their bounding sphere then sits kilometers below the surface: flying to a points-only GeoJSON from another city left the camera about 2.3 km underground (a black screen). Frame the features' longitudes and latitudes at the surface instead, and let the existing camera ground guard lift the eye once the terrain can be measured (src/ui/flyToDataSource.js, with tests). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
57b8d8b23c
commit
2fec1091d4
6 files changed
+139
-3
No files matched your search
@@ -966,5 +966,7 @@
|
||||
"src/tools/views.test.mjs",
|
||||
"src/app/embed.test.mjs",
|
||||
"src/tools/globePanel.test.mjs",
|
||||
"src/costEndpointThrottle.test.mjs"
|
||||
"src/costEndpointThrottle.test.mjs",
|
||||
"src/ui/flyToDataSource.js",
|
||||
"src/ui/flyToDataSource.test.mjs"
|
||||
]
|
||||
@@ -1959,6 +1959,7 @@
|
||||
"src/annotations/drawMode.js",
|
||||
"src/annotations/drawTool.js",
|
||||
"src/data/geoFileImport.js",
|
||||
"src/ui/flyToDataSource.js",
|
||||
"src/ui/geoFileImport.js",
|
||||
"src/data/routeSteps.js",
|
||||
"src/layers/directions/index.js",
|
||||
|
||||
Reference in new issue
Block a user