-
Notifications
You must be signed in to change notification settings - Fork 21
OfflineGuide
A typical installation of DFA requires a connection to the internet in order to access the CesiumJS library and access map data. This guide will show you how to load the CesiusJS library offline and display a very simple map. For more complicated tile server connections, please see the documentation for CesiumJS and your tile server.
There are two methods available for downloading the CesiumJS library. Please select the method best suited to your situation.
-
Check that npm is installed on your system. If it is not, refer to your OS's instructions for installing npm.
npm --version
-
Navigate to the
df-aggregator/static/directory.cd static
-
Install the CesiumJS library.
npm install cesium
-
Download the latest version of CesiumJS from here: https://cesium.com/downloads/cesiumjs/
-
Create a folder named
cesiumunderdf-aggregator/static/ -
Extract the contents of the CesiumJS library to the
cesium/folder you just created.
-
Open
views/cesium.tplin a text editor. -
Look for the following lines:
<script src="https://cdnjs.cloudflare.com/ajax/libs/cesium/1.95.0/Cesium.js" integrity="sha512-Y95sidA9cDT2a8MMmD47EyCVxQRJYNhXEnvBgbsp+q0gK2k3VSMpMvs9DTct0dEjm+6Dru+d2wYllhgceEiFgw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>