If you want to create a static image of the selected place on the MapView
, you can use MKMapSnaphotter class for this purpose with satellite map type. When you click on the details button, pass MKSnapshotOptions to your detail view controller like this:
MKMapSnapshotOptions *options = [MKMapSnapshotOptions new];
options.region = mapView.region;
options.size = mapView.frame.size;
options.mapType = MKMapTypeSatellite;
options.showsBuildings = YES;
options.scale = [[UIScreen mainScreen] scale];
detailViewController.options = options;
And then in your detail view controller create a snapshot image and show it like this:
MKMapSnapshotter *snapshotter = [[MKMapSnapshotter alloc] initWithOptions:self.options];
[snapshotter startWithCompletionHandler:^(MKMapSnapshot *snapshot, NSError *error) {
if (error) return; //And show error message;
imageView.image = snapshot.image;
}];