我正在尝试在我的位置上放置中心地图,但我现在的位置在地图的 3/4 处。它正在工作,但现在我想zoom in
更多地了解我的职位。你能帮助我吗?
CLLocationCoordinate2D objCoor2D = {.latitude = latitude_UserLocation, .longitude = longitude_UserLocation};
MKMapRect r = [self.mapView visibleMapRect];
MKMapPoint pt = MKMapPointForCoordinate(objCoor2D);
r.origin.x = pt.x - r.size.width * 0.5;
r.origin.y = pt.y - r.size.height * 0.75;
[self.mapView setVisibleMapRect:r animated:YES];