Skip to content

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

@datadavev

Description

@datadavev

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:

  • The user may want to store multiple views, so perhaps the camera state should be stored in a dict with user friendly labels as the key and the camera state object as the values.
  • A user may choose to not allow local storage (it's an optional security setting)
  • The camera state is just the view in Cesium, it is separate from any query the user may have issued.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions