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 map zoom and center so it can be restored when switching platforms #1

Open
noaaroland opened this issue Jul 2, 2024 · 0 comments

Comments

@noaaroland
Copy link
Collaborator

Now when you select a new platform to plot, the map redraws to show the history of the locations of the newly selected platform. This causes the map center and zoom to be reset.

Probably the best way to fix this is to draw the platforms and the trace of the selected platform in two separate callbacks. In the second callback update the location trace without redrawing the whole map. This can be done by getting the map figure as state input to the second callback.

This can be unpacked when we tear out saving the state in the URL and start using the built-in deep linking capability.

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

No branches or pull requests

1 participant