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

mapfishapp window.onbeforeunload #50

Merged
merged 7 commits into from
Feb 8, 2013

Conversation

fvanderbiest
Copy link
Member

For browsers having localStorage, serialize the current map context on window.onbeforeunload, then store it in localStorage. Give the user a chance to restore it (or to start with a fresh context) on app load.

For the older ones, continue displaying the unfriendly alert message ...

@ghost ghost assigned fvanderbiest Feb 6, 2013
@fvanderbiest
Copy link
Member Author

Here's a proposal :

  • mapfishapp will remember the latest map state by default (for browsers with localStorage).
  • If the user clicks the checkbox in the "load context" window, the map state at the next application load will be defined by the chosen context (only for those provided by the admin)

fvanderbiest added a commit that referenced this pull request Feb 8, 2013
@fvanderbiest fvanderbiest merged commit ea4053a into master Feb 8, 2013
@fvanderbiest fvanderbiest deleted the enhancement/50/onbeforeunload branch February 8, 2013 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant