I have a lot of polygonal features loaded with loadGeoJson and I\'d like to get the latLngBounds of each. Do I need to write a function that iterates through every lat long
Here's another solution for v3 Polygon :
var bounds = new google.maps.LatLngBounds(); map.data.forEach(function(feature){ if(feature.getGeometry().getType() === 'Polygon'){ feature.getGeometry().forEachLatLng(function(latlng){ bounds.extend(latlng); }); } });