[OSGeoLive] #2323: cesium does not show a map as the cesium access token is not falid
OSGeoLive
trac_osgeolive at osgeo.org
Tue Mar 30 13:34:01 PDT 2021
#2323: cesium does not show a map as the cesium access token is not falid
-------------------------+--------------------------
Reporter: astrid_emde | Owner: osgeolive@…
Type: task | Status: new
Priority: normal | Milestone:
Component: OSGeoLive | Resolution:
Keywords: |
-------------------------+--------------------------
Comment (by astrid_emde):
In a tutorial it looks like the access_code has to be added before the
Cesium Viewer is created:
https://cesium.com/docs/tutorials/quick-start/
Add this to /var/www/html/cesium/Apps/HelloWorld.html
// Your access token can be found at: https://cesium.com/ion/tokens.
Cesium.Ion.defaultAccessToken =
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIwNjJhYTMzNS1lNzZkLTRmNWQtYmY5Zi0wYjdkYjQ2MTE4ZTYiLCJpZCI6NDc1NjUsImlhdCI6MTYxNzEzNTEzOH0
.lf_WWRtP9LlyYbVSr0KdhFI4FzReQsqKQwK-vYK5BPI';
// Initialize the Cesium Viewer in the HTML element with the
`cesiumContainer` ID.
--
Ticket URL: <https://trac.osgeo.org/osgeolive/ticket/2323#comment:1>
OSGeoLive <https://live.osgeo.org/>
self-contained bootable DVD, USB thumb drive or Virtual Machine based on Lubuntu, that allows you to try a wide variety of open source geospatial software without installing anything.
More information about the osgeolive
mailing list