Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save the current Cesium config as a link for sharing #1806

Closed
laurenwalker opened this issue May 25, 2021 · 4 comments · Fixed by #2437
Closed

Save the current Cesium config as a link for sharing #1806

laurenwalker opened this issue May 25, 2021 · 4 comments · Fixed by #2437
Assignees
Labels
Milestone

Comments

@laurenwalker
Copy link
Member

Add a feature to Cesium and MetacatUI where users can save their current data layer configuration to come back to later since the map will be reset anytime the browser window is closed. This Cesium config can be reloaded when the user logs in on their next visit.
These saved configs could also be shared with others. e.g. if you found an interesting combination of data layers/colors/filters/time, you could save and share that map with others. We could also allow users to publish their saved maps and create a "Gallery" of maps others have created. This could help a lot with community and cooperativeness around the PDG.

@laurenwalker laurenwalker added enhancement pdg Permafrost Discovery Gateway cesium labels May 25, 2021
@laurenwalker laurenwalker changed the title Save the current Cesium config as "My maps" for use later or sharing Save the current Cesium config as "My maps" for later use or sharing May 25, 2021
@robyngit
Copy link
Member

One use case for this came up in the PDG meeting today: the LEO Network would like to include links on their website that open up the PDG portal and specific locations and with specific layers visible

@robyngit
Copy link
Member

This feature keeps getting requested for different use-cases, which is why I've added the high priority tag.

For example, a researcher just asked whether we could create a link that displays the Details Panel for a particular layer by default. Here are details of the request:

Also, is there a way to have a link to the PDG where the INFO & DATA tab is already open for the SWI trend? I'm just thinking that if someone (a non-scientist) is directed to this site from a news story, they might be confused
because there is a layer for lakes, another for surface water, and then mine for the SWI trend. As a scientist, I understand how these are all different! But someone else might be confused and it would be nice to highlight the data published in the article, and those who are interested can stay and click around some more.

@robyngit
Copy link
Member

Here is a mockup of a simple UI we could use in the Cesium map to share a link of the current view:

share

@robyngit
Copy link
Member

Overall, there have been few requests to save map views as a collection, but many requests to get a link of the current map view to share between users. If we can get the link functionality implemented, then a user could at least create their own collection of views via browser bookmarks. We could also use the link functionality to create a "Gallery" view in the future.

Map properties that should be shared via the link:

  • visible layers
  • layer opacity, saturation, etc.
  • camera position
  • ...?

@robyngit robyngit changed the title Save the current Cesium config as "My maps" for later use or sharing Save the current Cesium config as a link for sharing Apr 18, 2024
@robyngit robyngit added this to the 2.30.0 milestone Apr 18, 2024
@robyngit robyngit removed this from the 2.30.0 milestone Apr 23, 2024
@ianguerin ianguerin self-assigned this Jun 5, 2024
@robyngit robyngit linked a pull request Jun 7, 2024 that will close this issue
@robyngit robyngit added this to the 2.30.0 milestone Jun 7, 2024
@github-project-automation github-project-automation bot moved this from Backlog to Done in Visualization/Frontend Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants