How to Dynamically Set Zoom Level to Display Two Markers on Google Maps in Flutter App screen Without Scrolling?
I’m working on a Flutter application that utilizes Google Maps. In my app, I have two markers: one representing the user’s location and the other representing the pet’s location. I want to set the zoom level of the map so that both markers are visible on the screen at the same time. How can I calculate the appropriate zoom level to achieve this?