Is there a function to calculate center of the map when displaying multiple markers? I can't seem to find one, I got the markers showing up but they are always off-map and I have to scroll to see them on the actual map.

Thanks for your help.