I am working on an app that displays certain markers based on a radius around your current location. The radius is between 100 - 5000 meters. I change the radius with an UISlider
and redraw the GMSCircle
.
My problem is that I want to update the camera zoom according to the slider value but I don't have an idea by which scale to divide.
This is how I create the camera in the viewDidLoad
method where the initial zoom value is 15:
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:locationManager.location.coordinate.latitude longitude:locationManager.location.coordinate.longitude zoom:15];
Here's a screenshot of what I am working on.
Does anyone know what scale should I use to move the zoom accordingly?
Thanks a lot!
Granit