-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
open /map page more zoomed in for performance reasons #7822
Comments
https://publiclab.org/map#11/40.67759191045513/-73.8769419793971 zoom 10 or 11 seems to be good. here's someone. |
@jywarren I don't do ruby, but I think I can take a shot at this! Thanks!! |
Great 🎉 @Shulammite-Aso go ahead |
Hi @jywarren @cesswairimu please do help.😊 I'm trying to get exactly what we need to do here. Is it to change the global view here plots2/app/controllers/map_controller.rb Line 26 in ba94709
Thank you! |
@Shulammite-Aso you could try different zooms see which one gives the best display and use that as the default...10 was the proposed one |
Thanks @cesswairimu |
yeah just the zoom I believe. Thanks |
Amazing @Shulammite-Aso thank you! Reviewing now! |
Really big views are a performance issue for displaying nearby people, so we should try to zoom in a bit on https://publiclab.org/map
Code is here:
plots2/app/controllers/map_controller.rb
Line 32 in ba94709
And is used here in the template:
plots2/app/views/map/map.html.erb
Lines 43 to 45 in ba94709
If there is no zoom profile tag, it seems to default to a global view!
https://publiclab.org/map#3/40.99999999999999/-52.89453124999999
Let's not do that. Maybe choose like zoom 10 as default?
https://publiclab.org/map#10/41.88165276651511/-71.36132687330247
The text was updated successfully, but these errors were encountered: