Opened 4 years ago

Closed 4 years ago

#2323 closed defect (fixed)

cesium does not show a map as the cesium access token is not falid

Reported by: astrid_emde Owned by: osgeolive@…
Priority: critical Milestone: OSGeoLive14.0
Component: OSGeoLive Keywords:
Cc: osgeolive@…

Description

Attachments (1)

cesium_hello_world.png (158.5 KB ) - added by astrid_emde 4 years ago.

Download all attachments as: .zip

Change History (6)

by astrid_emde, 4 years ago

Attachment: cesium_hello_world.png added

comment:1 by astrid_emde, 4 years ago

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.
Last edited 4 years ago by astrid_emde (previous) (diff)

comment:2 by astrid_emde, 4 years ago

The error does not occur in newer releases. We could use the version 1.80.

-> Change to CESIUM_VERSION="1.80"

https://github.com/OSGeo/OSGeoLive/blob/master/bin/install_cesium.sh#L30

comment:3 by kalxas, 4 years ago

Cc: osgeolive@… added
Milestone: OSGeoLive14.0
Priority: normalcritical
Type: taskdefect

comment:4 by kalxas, 4 years ago

Fixed in build 275, this means we will need to make an rc3 release soon

comment:5 by kalxas, 4 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.