One Logo Pool Ball
MapKit · IOS API REFERENCE

MKMapCamera

class · iOS 7.0+ · SDK 27.1

class MKMapCamera

Members (13)

init · iOS 9.0+

init

TypeScript
static initLookingAtCenterFromDistancePitchHeading(centerCoordinate: { latitude: number; longitude: number }, distance: number, pitch: number, heading: number): MKMapCamera
Swift declaration
convenience init(lookingAtCenter centerCoordinate: CLLocationCoordinate2D, fromDistance distance: CLLocationDistance, pitch: CGFloat, heading: CLLocationDirection)
init · iOS 7.0+

init

TypeScript
static initLookingAtCenterFromEyeCoordinateEyeAltitude(centerCoordinate: { latitude: number; longitude: number }, eyeCoordinate: { latitude: number; longitude: number }, eyeAltitude: number): MKMapCamera
Swift declaration
convenience init(lookingAtCenter centerCoordinate: CLLocationCoordinate2D, fromEyeCoordinate eyeCoordinate: CLLocationCoordinate2D, eyeAltitude: CLLocationDistance)
init · iOS 16.0+

init

TypeScript
static initLookingAtForViewSizeAllowPitch(mapItem: MKMapItem, viewSize: { width: number; height: number }, allowPitch: boolean): MKMapCamera
Swift declaration
convenience init(lookingAt mapItem: MKMapItem, forViewSize viewSize: CGSize, allowPitch: Bool)
get · iOS 7.0+ · Deprecated in iOS 100000.0

altitude

TypeScript
get altitude(): number
Swift declaration
var altitude: CLLocationDistance { get set }
set · iOS 7.0+ · Deprecated in iOS 100000.0

altitude

TypeScript
set altitude(value: number)
Swift declaration
var altitude: CLLocationDistance { get set }
get · iOS 7.0+

centerCoordinate

TypeScript
get centerCoordinate(): { latitude: number; longitude: number }
Swift declaration
var centerCoordinate: CLLocationCoordinate2D { get set }
set · iOS 7.0+

centerCoordinate

TypeScript
set centerCoordinate(value: { latitude: number; longitude: number })
Swift declaration
var centerCoordinate: CLLocationCoordinate2D { get set }
get · iOS 13.0+

centerCoordinateDistance

TypeScript
get centerCoordinateDistance(): number
Swift declaration
var centerCoordinateDistance: CLLocationDistance { get set }
set · iOS 13.0+

centerCoordinateDistance

TypeScript
set centerCoordinateDistance(value: number)
Swift declaration
var centerCoordinateDistance: CLLocationDistance { get set }
get · iOS 7.0+

heading

TypeScript
get heading(): number
Swift declaration
var heading: CLLocationDirection { get set }
set · iOS 7.0+

heading

TypeScript
set heading(value: number)
Swift declaration
var heading: CLLocationDirection { get set }
get · iOS 7.0+

pitch

TypeScript
get pitch(): number
Swift declaration
var pitch: CGFloat { get set }
set · iOS 7.0+

pitch

TypeScript
set pitch(value: number)
Swift declaration
var pitch: CGFloat { get set }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

MKMapCamera.init()

inherited init: cannot prove legal (class declares 6 custom initializers)

All MapKit types →