Old CesiumJS codes no longer work with the new version 1.103

The critical part appears to be

TypeError: tileset_zoneB.readyPromise.then(…).otherwise is not a function

This corresponds to the instructions that are given in the linked thread, which says

In promise chains which originate from the Cesium API, switch to using the Promise API

  • otherwise changes to catch
  • always changes to finally

As a first, quick shot, you could look at your source code and search for the function otherwise, and change this to catch.

(Maybe that’s not the only difference, but it should bring you one step closer towards a state that works with the latest version)

1 Like