Skip to content

mcleanra/cesium

 
 

Repository files navigation

for SharePoint

Build Status 

Docs Greenkeeper badge

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.

http://cesiumjs.org/

🚀 Get Started

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>

Updating this fork

git remote add upstream https://github.com/AnalyticalGraphicsInc/cesium.git
git fetch upstream
git merge upstream/master
git push

Packages

No packages published

Languages

  • JavaScript 88.8%
  • HTML 7.7%
  • CSS 2.4%
  • GLSL 1.1%