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

Rendering ra/dec labels after changing the map date/location #125

Open
timbeccue opened this issue Nov 4, 2021 · 0 comments
Open

Rendering ra/dec labels after changing the map date/location #125

timbeccue opened this issue Nov 4, 2021 · 0 comments

Comments

@timbeccue
Copy link

Hello, I have an issue related to readable ra/dec labels after rotating the map. I encounter the problem when initializing the map, and also when using Celestial.location or Celestial.date.

On calling Celestial.display(config), the map will render first at geopos==[0,0] and then rotate to geopos=<desired location>. However, the lat/lon labels render right away at geopos==[0,0] and then rotate away from the desired location. This often results in unreadable labels.

Here is a working example demonstrating the issue: https://codesandbox.io/s/vue-d3-celestial-coordinates-rendering-bug-b7q2h?file=/src/App.vue

Here's the result I'm trying to avoid.
Screen Shot 2021-11-04 at 3 41 00 PM

This is the result I would like.
Screen Shot 2021-11-04 at 3 42 46 PM
Is there some method I can call to reset the lat/lon label positions after the map changes its view?

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