Bookmark widget in cesium

1. A concise explanation of the problem you're experiencing.

I want a logic for creating a bookmark widget using Cesium API. My intent here is to create a widget which can get the current extent of the map on the click of a book mark button and then i can store it in a session or internal storage so that i can see all those when i come back to my application.

Hope you understand my requirement!!!

2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.

N/A

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

- As i mentioned above, I need to create a bookmark widget where i can store multiple bookmarks. I just need to know how can we store the current extent and can change the extent object values on the click of different bookmark.

4. The Cesium version you're using, your operating system and browser.

Cesium 1.55
Windows 10 Enterprise
Chorme Version 74.0.3729.131

The Cesium Viewer sample app has an example of saving and loading the camera view in the URL:

https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Apps/CesiumViewer/CesiumViewer.js#L201-L210

So you could do something like that, and then store those strings in your application. You could do that using a database, or store it as local browser data: https://www.w3schools.com/html/html5_webstorage.asp