mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 16:52:20 +00:00
Keep authored scene playback, pack media and geographic interactions across globes
This commit is contained in:
1 parent
a49671a391
commit
160e445677
18 files changed
+959
-101
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user