isamplesorg / isamples_webui

Web interface to iSB and iSC APIs
https://isamplesorg.github.io/isamples_webui/
Apache License 2.0
0 stars 1 forks source link

Refactor the "Viewer Change" dialog functionality in Cesium #183

Open datadavev opened 6 months ago

datadavev commented 6 months ago

Viewer Change in the Cesium view provides the option to navigate to a few specific locations or specific latitude, longitude.

Instead of a static list, we should provide the user an opportunity to save a view nd be able to return to the view at a later time. The basic process for achieving this will be:

  1. Get the camera state from cesium (e.g. api/spatial.js at 350)
  2. Save the camera state in browser local storage
  3. At a later time or a new browser session, retrieve the camera state from local storage and navigate to the specified view (e.g. api/spatial.js at 327).

Notes: