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

HashTrack State Upgrades #66

Open
klassenjs opened this issue May 18, 2017 · 3 comments
Open

HashTrack State Upgrades #66

klassenjs opened this issue May 18, 2017 · 3 comments

Comments

@klassenjs
Copy link
Member

klassenjs commented May 18, 2017

It would be useful if HashTrack could restore the visible state of the map so that sharing the URL with someone else or bookmarking it for yourself would restore the map as it looked before.

Currently, the following are tracked:

  • Map center and scale
  • The list of visible layers

To restore the map to its previous visible state, at least the following would be, in addition, required:

  • Layer Z-Order
  • Layer Opacity
  • Drawings
  • Query results

While all of this state may be technically trackable, doing so is a lot of data and would produce exceptionally long URLs that in many instances would exceed the lengths allowed by the browsers. This could be somewhat mitigated by compressing the data but that wouldn't remove the length limitation and would also make testing and manual inspection/changing of the URL significantly more painful and thus may not be worth the complexity. Thus, we will not be able to reliably track everything and will need to be selective about what is and isn't tracked.

This was referenced May 18, 2017
@theduckylittle theduckylittle changed the title Make HashTrack track z-order HashTrack State Upgrades May 23, 2017
@klassenjs
Copy link
Member Author

At this point and unless there is a real need demonstrated to track more, it probably makes most sense to document what is and isn't tracked.

@tchaddad
Copy link
Collaborator

tchaddad commented Mar 4, 2020

Is there a simple example of what can be bookmarked that we can include in the demo? At one point we had a bookmarking example, but I think that was back in 2.8-2.9 ?

@theduckylittle
Copy link
Member

The list @klassenjs mentioned is what is currently bookmarkable. I do have a request to recreate the "bookmark" tool which will put the URL into a textfield and offer to copy it to the clipboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants