webgmaps zoom level based on two coordinates


I would like to adjust the zoomlevel based on two coordinates.  i.e. I want to show a map where London and Paris are both visible with the highest posible zoomlevel. Is there an easy way to do this with webgmaps?

I am using the trial version of webgmaps for firemonkey.

Thanks in advance!


You can use the MapZoomTo(Bounds: TBounds) call. This function performs a zoom to fit the map inside the given bounds coordinates.