forked from STI/Astroport.ONE
53 lines
1.8 KiB
HTML
53 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta
|
|
name="viewport"
|
|
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"
|
|
/>
|
|
<meta name="description" content="Demo the minimum set of options needed to remove all external dependencies, for offline operation.">
|
|
<meta name="cesium-sandcastle-labels" content="Beginner, Showcases">
|
|
<title>Cesium Demo</title>
|
|
<script type="text/javascript" src="../Sandcastle-header.js"></script>
|
|
<script src="../CesiumUnminified/Cesium.js"></script>
|
|
<script>window.CESIUM_BASE_URL = "../CesiumUnminified/";</script>
|
|
</head>
|
|
<body
|
|
class="sandcastle-loading"
|
|
data-sandcastle-bucket="bucket-requirejs.html"
|
|
>
|
|
<style>
|
|
@import url(../templates/bucket.css);
|
|
</style>
|
|
<div id="cesiumContainer" class="fullSize"></div>
|
|
<div id="loadingOverlay"><h1>Loading...</h1></div>
|
|
<div id="toolbar"></div>
|
|
<script id="cesium_sandcastle_script">
|
|
window.startup = function (Cesium) {
|
|
'use strict';
|
|
//Sandcastle_Begin
|
|
// This is an example of using Cesium "Offline", meaning disconnected from the
|
|
// external Internet. It must still be served from a local web server, but
|
|
// does not rely on any outside resources or services. For more info, see:
|
|
// https://github.com/CesiumGS/cesium/wiki/Offline-Guide
|
|
|
|
const viewer = new Cesium.Viewer("cesiumContainer", {
|
|
imageryProvider: new Cesium.TileMapServiceImageryProvider({
|
|
url: Cesium.buildModuleUrl("Assets/Textures/NaturalEarthII"),
|
|
}),
|
|
baseLayerPicker: false,
|
|
geocoder: false,
|
|
});
|
|
//Sandcastle_End
|
|
Sandcastle.finishedLoading();
|
|
};
|
|
if (typeof Cesium !== 'undefined') {
|
|
window.startupCalled = true;
|
|
window.startup(Cesium);
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|