I'd like to scale google map zoom level based on the radius of the circle. Technically I want the user to see circle on map at optimum zoom level. I tried to get bounds and adjust camera position, but circle does not have any such bounds parameter..
GoogleMap(
onMapCreated: (GoogleMapController controller) {
controller.showMarkerInfoWindow(MarkerId("0"));
},
circles: Set.from([
Circle(
circleId: CircleId("0"),
center: LatLng(...),
radius: 1000,
)
]),
initialCameraPosition: CameraPosition(
target: LatLng(..),
**zoom: 15, // I want to scale zoom based on radius of circle.**
),
markers: {
Marker(
markerId: MarkerId("0"),
position: LatLng(..),
infoWindow: InfoWindow(title: ...)
)
},
),
),
Thanks in Advance.