This fork of Cesium has been modified so that it can be used inside SharePoint. This just means that the .json files have been renamed to .txt files.
- All JSON files have been changed to .txt
- iFrame in the infoBox has been replaced with a div
Cesium is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin. It uses WebGL for hardware-accelerated graphics, and is cross-platform, cross-browser, and tuned for dynamic-data visualization.
Clone the repository.
git clone https://github.com/mcleanra/cesium.git
Install dependencies.
cd cesium
npm install
Build a release.
npm run release
To deploy: drop the cesium/Build/Cesium folder into SharePoint and reference these files from your page:
<link rel="stylesheet" href="./cesium/Widgets/widgets.css" />
<link rel="stylesheet" href="./cesium/Widgets/CesiumWidget/CesiumWidget.css" />
<link
rel="stylesheet"
href="./cesium/Widgets/BaseLayerPicker/BaseLayerPicker.css"
/>
<script src="./cesium/Cesium.js"></script>
git remote add upstream https://github.com/AnalyticalGraphicsInc/cesium.git
git fetch upstream
git merge upstream/master
git push