0

I want to show current user location in center and also want to show 15km distance on all sides from current location. How to achieve that?

4

1 回答 1

1

这是如何做到的:

- (void)zoomToUserLocationAnimated:(BOOL)animated
{
    CLLocationCoordinate2D locationCoordinate2D = _locationManager.location;
    CLLocationDistance distance = 30000;

    [self setRegion:MKCoordinateRegionMakeWithDistance(locationCoordinate2D, distance, distance)
           animated:animated];
}
于 2014-03-02T08:46:09.843 回答