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

Initial map view not zooming #37

Open
jamiefolsom opened this issue Apr 29, 2024 · 1 comment
Open

Initial map view not zooming #37

jamiefolsom opened this issue Apr 29, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jamiefolsom
Copy link
Member

https://gbof-web.netlify.app/map#/&map=1.02/0/0

@jamiefolsom jamiefolsom added the bug Something isn't working label Apr 29, 2024
@ajolipa
Copy link
Collaborator

ajolipa commented May 7, 2024

I don't remember whether this bug meant that it was starting all the way zoomed out and then swooping in, or that it was just staying all the way zoomed out. In any case, current behavior as of PR #40 is swooping -- I played around with it a bit and determined that I can't easily set that behavior from the Astro side of things without digging deeper into the inner workings of the map components from Peripleo, etc. So for now it still has the behavior that it starts fully zoomed out and then zooms to fit the search results. (The issue is that before the search results have loaded, it doesn't know what bounds to use to fit them, so there's some subtle timing stuff about what order things are loading in.)

But in any case, at least it's not just staying zoomed all the way out to the world map now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants