Add support for URL query parameters to represent application state #381
Labels
enhancement
New feature or request
M
Size: 2-3 days
medium
Priority: normal maintenance and enhancements
This is lower priority but if figured out would be a big step forward.
It would be useful to represent the state of the application with URL query parameters. For example, see the image below, which shows how some layers have been turned off. The URL might look something like:
where
huc12
is the layer ID and.enabled
is a property. We need to figure out the mechanics of doing such a thing and then spend time on the specification that would map URL to application state properties. The application would need to update the URL when selections are made and would need to be able to recreate a UI state based on URL with query parameters. It is important to understand the parts of the URL, including the main resource, the query parameters to modify state, and the hash fragment. As shown above the query parameter is in the fragment, which may not be correct. However, I tried some bogus query parameters in the hash fragment and the correct app page was displayed.The text was updated successfully, but these errors were encountered: