MapQuest iOS SDK

MapQuest iOS SDK provides a very powerful set of methods to display the map camera to a specific position. You can center the map at a particular coordinate with zoom level, or tilt the camera for a more 3D perspective.

Set the Map to a Latitude/Longitude

iOS with centered map
@import Mapbox;
@import MapQuestMaps;

@interface ViewController() <MGLMapViewDelegate>

@property (nonatomic, weak) IBOutlet MQMapView *mapView;

@end

@implementation ViewController

- (void)mapViewDidFinishLoadingMap:(MGLMapView *)mapView {

    CLLocationCoordinate2D MAPQUEST_HQ_LOCATION = CLLocationCoordinate2DMake(39.750307, -104.999472);
    [self.mapView setCenterCoordinate:MAPQUEST_HQ_LOCATION zoomLevel:11 animated:YES];

}

@end
import MapQuestMaps
import Mapbox

class ViewController: UIViewController, MGLMapViewDelegate, UIActionSheetDelegate {

    @IBOutlet fileprivate weak var mapView: MQMapView?

    func mapViewDidFinishLoadingMap(_ mapView: MGLMapView) {

        let MAPQUEST_HQ_LOCATION = CLLocationCoordinate2D(latitude: 39.750307, longitude: -104.999472)
        
        let  mapQuestHQ = MGLPointAnnotation()
        mapQuestHQ.coordinate = MAPQUEST_HQ_LOCATION
        mapQuestHQ.title = "MapQuest"
        mapView.addAnnotation(mapQuestHQ)
        
        mapView.setCenter(MAPQUEST_HQ_LOCATION, zoomLevel: 11, animated: true)

    }
}

Camera Position and Tilt

iOS with centered map from an angle

Instead of using setCenterCoordinate: method of MQMapView, you could create a camera and move the map's viewport to the camera.

CLLocationCoordinate2D MAPQUEST_HQ_LOCATION = CLLocationCoordinate2DMake(39.750307, -104.999472);
//create a camera                       
MGLMapCamera *camera = [MGLMapCamera cameraLookingAtCenterCoordinate:MAPQUEST_HQ_LOCATION fromDistance:1000 pitch:65 heading:0];

/**Moves the viewpoint to a different location using a transition animation that
evokes powered flight and a default duration based on the length of the flight
path.

The transition animation seamlessly incorporates zooming and panning to help
the user find his or her bearings even after traversing a great distance.
*/
[self.mapView flyToCamera:camera withDuration:1.0 completionHandler:nil];
//create location coordinate
let MAPQUEST_HQ_LOCATION = CLLocationCoordinate2D(latitude: 39.750307, longitude: -104.999472)

//create camera
let camera = MGLMapCamera(lookingAtCenter: MAPQUEST_HQ_LOCATION, fromDistance: 1000, pitch: 65, heading: 0)

/**Moves the viewpoint to a different location using a transition animation that
evokes powered flight and a default duration based on the length of the flight
path.

The transition animation seamlessly incorporates zooming and panning to help
the user find his or her bearings even after traversing a great distance.
*/
mapView.fly(to: camera, completionHandler: nil)