I try to zoom to a number of km on a location (Paris, in my case), like this:
map.myCircle = circle;
// update radius
map.myCircle.radius = newRadius;
// update map - ZOOM
map.myCircle.setMap(null);
map.fitBounds(map.myCircle.getBounds());
map.myCircle.setMap(map);
As you can see, the fitBounds
does not really fit the circle bounds.
When you increment (up-down) the radius, you can see that the map zoom does not change, but the circle radius changes.
Is there a way to synchronize the view zoom with the circle radius and make the circle touch the map margins?