google.maps control code example Example: recenter google map based on route map.setCenter(route.bounds.getCenter());