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:
Sameh Khamis committed 2026-11-07 16:56:49 -08:00
1 parent 2a9a2d5be8
commit c49191a87b
9 files changed
+469 -412

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ import {
cancelCameraArrival,
ownCameraArrival,
} from '../data/cameraArrival.js';
import { dataSourcePoints } from '../data/geoFileImport.js';
import { dataSourcePoints } from '../data/geoImportPins.js';
import { bindFakeCesiumCamera } from '../testSupport/fakeCameraPort.mjs';
import { fakeSceneQuery } from '../testSupport/fakeCesiumScene.mjs';
import { flyToFootprint } from './flyToDataSource.js';
+1 -1
View File
@@ -2,9 +2,9 @@
import {
GeoImportError,
MAX_IMPORTED_FILES,
dataSourcePoints,
loadGeoFile,
} from '../data/geoFileImport.js';
import { dataSourcePoints } from '../data/geoImportPins.js';
import { formatNumber, t, tn, translateKnown } from '../i18n/index.js';
import { flyToFootprint } from './flyToDataSource.js';