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

Store state in localStorage #34

Open
peer35 opened this issue Oct 6, 2020 · 5 comments
Open

Store state in localStorage #34

peer35 opened this issue Oct 6, 2020 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@peer35
Copy link
Member

peer35 commented Oct 6, 2020

No description provided.

@peer35 peer35 added the enhancement New feature or request label Oct 6, 2020
@peer35
Copy link
Member Author

peer35 commented Oct 6, 2020

  • Visible extent
  • Services
  • Layer visibility
    --> Basically everything in the json?

Kloosters:

  • Year
    And:
  • Selected feature(s)

@peer35 peer35 mentioned this issue Oct 15, 2020
@peer35
Copy link
Member Author

peer35 commented Oct 15, 2020

TODO: test gpz viewer

@peer35
Copy link
Member Author

peer35 commented Oct 19, 2020

Try to save state only on closing/refreshing the page:

created() {
        window.addEventListener('beforeunload', () => {
            console.log(this.anything);
        }, false)
    },

peer35 added a commit that referenced this issue Oct 19, 2020
peer35 added a commit that referenced this issue Oct 19, 2020
@peer35 peer35 self-assigned this Oct 19, 2020
@peer35
Copy link
Member Author

peer35 commented Mar 24, 2021

Not sure if everything in the json is a good idea. That would make it difficult to update a config, basically evreryone who has opened the config before won't see changes. Could be mitigated by adding a version number to the config or a "mandatory" flag?

Or maybe merge the remote and local config???

@peer35
Copy link
Member Author

peer35 commented Mar 24, 2021

Or not persisting the data for more than a few days?

peer35 added a commit that referenced this issue Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant