mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Keep the file import's Cesium loading in its pins module and take the file reader off the Cesium list
src/data/geoFileImport.js now only reads, bounds and sanitizes the imported files (GeoJSON, GPX, KML and KMZ). Loading the parsed file as a Cesium data source, scrubbing its entities, settling its ground pins, the pin billboard collection and the footprint read for Fly-to move into src/data/geoImportPins.js, which stays on the Cesium list as the import's Cesium-bound part. The error, the entity limit, the one-minute deadline and feature-name cleanup both parts use live in the new src/data/geoImportShared.js; the reader re-exports them for its existing importers. Nothing changes for the person importing: the same files load with the same refusals, styles, ground heights, pins and framing.
This commit is contained in:
1 parent
2a9a2d5be8
commit
c49191a87b
9 files changed
+469
-412
No files matched your search
@@ -12,10 +12,8 @@ import {
|
||||
countGeoJsonGeometry,
|
||||
countKmlGeometry,
|
||||
deduplicateKmlStyles,
|
||||
detachImportedTime,
|
||||
gpxToGeoJson,
|
||||
importFeatureName,
|
||||
scrubImportedEntities,
|
||||
sanitizeKmlDocument,
|
||||
detectGeoFileFormat,
|
||||
importDisplayName,
|
||||
@@ -26,6 +24,7 @@ import {
|
||||
readZipEntries,
|
||||
resolveKmzPath,
|
||||
} from './geoFileImport.js';
|
||||
import { detachImportedTime, scrubImportedEntities } from './geoImportPins.js';
|
||||
import { createImportImageBudget, importImageSize } from './geoImportImages.js';
|
||||
|
||||
test('real loader grounds XYZ GeoJSON and strips loader-sensitive metadata before allocation', async () => {
|
||||
|
||||
Reference in new issue
Block a user