What I want to do is load a bunch of addresses using AJAX and JSON, find out the latitude and longitude of each address, put markers on the map and then use fitBounds(
I know that the following is not strictly related, but I've been struggling with this for quite a while, and I think it's worth sharing. After rendering multiple direction requests with DirectionsRenderer, the map was focused usually on the result of the last render command, despite the fact that I issued map.fitBounds after issuing the last render command with a bounding box to include all the direction request results in the viewport. The behaviour was not deterministic, sometimes the viewport was focused on the entire map, sometimes on the last direction request result. The solution was to set the preserveViewport:true for the renderer, so it never changes the focus of the map after displaying a direction request result, so now I'm able to change the focus with the fitbounds.