mirror of https://github.com/CesiumGS/cesium.git
15 lines
557 B
JavaScript
15 lines
557 B
JavaScript
// This file loads the unbuilt ES6 version of Cesium
|
|
// into the global scope during local development
|
|
window.CESIUM_BASE_URL = "../../../Build/CesiumUnminified/";
|
|
import * as Cesium from "../../Build/CesiumUnminified/index.js";
|
|
window.Cesium = Cesium;
|
|
|
|
// Since ES6 modules have no guaranteed load order,
|
|
// only call startup if it's already defined but hasn't been called yet
|
|
if (!window.startupCalled && typeof window.startup === "function") {
|
|
window.startup(Cesium).catch((error) => {
|
|
console.error(error);
|
|
});
|
|
Sandcastle.finishedLoading();
|
|
}
|