mysociety / planningalerts-app

Find out and have your say about what's being built and knocked down in your area.
www.planningalerts.org.au
Other
0 stars 1 forks source link

Zoom map to fit markers after loading. Fixes #139 #179

Closed stevenday closed 10 years ago

stevenday commented 10 years ago

I played with several options to solve the problem of not being able to see everything within the default map zoom level. Reducing the radius did have some effect, but it still wasn't optimal on small screens.

This however ensures that you always see everything that your search returned. It has the downside that on mobile especially you don't see as detailed a view of the map initially, but this is outweighed I think by the confusion of not seeing any markers at all.

It has the advantage too of showing you a much more detailed view on larger screens, because it can zoom in as far as possible to show all the results.

I think we should perhaps tweak the minimum radius down a bit still, but perhaps we can reduce it to 1 mile or 1/2 a mile instead. Otherwise people won't see enough results for more specific queries. This is just a config change that'll need to be made when this is deployed.

Closes #139

lizconlan commented 10 years ago

Cool! :+1: