Keep authored scene playback, pack media and geographic interactions across globes

This commit is contained in:
German Khokhlov committed 2026-11-03 04:49:46 +04:00
1 parent a49671a391
commit 160e445677
18 files changed
+959 -101

No files matched your search

+4 -1
View File
@@ -6,7 +6,10 @@ const xyz = (p) => Cesium.Cartesian3.fromDegrees(...p);
export function renderPackGeometry({ asset, pack }, handle) {
if (!['application/json', 'application/geo+json'].includes(asset.mimeType))
throw new Error('Expected GeoJSON');
const features = decodePackGeoJSON(asset.bytes);
return renderDecodedGeometry(decodePackGeoJSON(asset.bytes), pack, handle);
}
export function renderDecodedGeometry(features, pack, handle) {
const polygons = [];
let lines;
for (const feature of features) {