-1

I would like to display a map that adjusts to the appropriate zoom levels such that 2 specified gelocations are shown on it. For e.g. I would like to show London and Brussels both on the map and I want the zoom to be handled automatically to achieve this. What is the best way to do it?

Thanks, Yash

1 Answers1

0

The Map-object has a method called fitBounds which does exactly what you are searching for. Just pass a LatLngBounds object and you are done.

Joachim Rohde
  • 5,915
  • 2
  • 29
  • 46