ezsystems/DemoBundle — pull request #92 by crevillo (2014-05-28 17:12:38+00:00)
Title: EZP-22933

When seing several geo-content objects on one map, zoom is not adjusted for the corpus

Implements https://jira.ez.no/browse/EZP-22933

I love playing with gMaps and i've seen Roland has created an issue for the DemoBundle

Here's my proposed solution.
* If the search returns no results, then the map is centered and zoom remains "13" (default)
* if the search returns results, then we extend the latlngBounds with each marker position and finally with the center of the map too. This way, all mountains will be visible in the map and you can see that distance from your geolcation point.

Le me know if it helps.