CesiumJS Demo

In this example below you will see how to do a CesiumJS Demo with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by AlisonBuki, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright AlisonBuki ©
  • HTML
  • CSS
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>CesiumJS Demo</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <style>
 @import url(https://sspcdn.blob.core.windows.net/files/Data/ScienceNews/Cesium/Widgets/widgets.css)
</style>
<div id="cesiumContainer" class="fullSize"></div>
<div id="loadingOverlay"><h1>Loading...</h1></div>
<div id="toolbar"></div>
  <script src='https://cesiumjs.org/releases/1.36/Build/Cesium/Cesium.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>

  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/AlisonBuki/cesiumjs-demo-eEddyJ */
html, body, #cesiumContainer {
  width: 100%;
  height: 100%; 
  margin: 0; 
  padding: 0; 
  font-family: 'Lato', Helvetica, sans-serif;
  overflow: hidden;
}
.cesium-viewer-toolbar {
  display:none!important;
}
.cesium-viewer-animationContainer {
  display: none;
}
.cesium-viewer-timelineContainer {
  display: none;
}
.cesium-widget-credits {
  display:none!important;
}

/*Downloaded from https://www.codeseek.co/AlisonBuki/cesiumjs-demo-eEddyJ */


var viewer = new Cesium.Viewer('cesiumContainer');

Comments