У меня есть квадрат MKMapView в моем приложении, и я хочу установить центральную точку и точную высоту/ширину представления в метрах.
Создание MKCoordinateRegion и установка для него карты (как в этом коде...
MKCoordinateRegion region = MKCoordinateRegionMakeWithDistance(center_coord, 1000.0, 1000.0);
[self.mapView setRegion:region animated:YES];
..) не работает должным образом, потому что использование регионов здесь означает, что отображается хотя бы эта область, обычно больше, чем область.
Я планирую использовать setVisibleMapRect: анимированные: метод вместо этого, как я считаю, что это будет увеличить до фактической MKMapRect.
Итак, есть ли простой способ конвертировать между MKcoordinateRegion и MKMapRect? Возможно, получая левые и нижние правые координаты области и используя их для создания MKMapRect?
Я ничего не мог видеть под рукой в Map Kit Функции Ссылка.
(с использованием iOS 5, Xcode 4.2)