mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 01:02:23 +00:00
Load the Cesium SDK and its widget styles only when a Cesium globe first starts
This commit is contained in:
1 parent
9f8381ff71
commit
ae13a56f6d
27 files changed
+269
-124
No files matched your search
@@ -1,5 +1,4 @@
|
||||
import { normalizeRoadMode } from './roadModes.js';
|
||||
import * as Cesium from 'cesium';
|
||||
import { FLOW_BUCKET_COLORS } from './policy.js';
|
||||
|
||||
export function createState({ services }) {
|
||||
@@ -294,7 +293,7 @@ export function createState({ services }) {
|
||||
|
||||
/** Reusable scratch Cartesian3 to avoid per-frame allocation / GC pressure */
|
||||
|
||||
layerState._scratchLerp = new Cesium.Cartesian3();
|
||||
layerState._scratchLerp = { x: 0, y: 0, z: 0 };
|
||||
|
||||
// ─── Animation ─────────────────────────────────────────────
|
||||
|
||||
|
||||
Reference in new issue
Block a user