Launch Options Dictionary Keys

Launch options to specify when opening map items in the Maps app.

Overview

You specify these keys in the launch options dictionary for the openMaps(with:launchOptions:) or openInMaps(launchOptions:) method.

Topics

Launch Options

let MKLaunchOptionsMapTypeKey: String

The type of map (standard, satellite, or hybrid) to display.

let MKLaunchOptionsMapCenterKey: String

The coordinate value on which to center the map.

let MKLaunchOptionsMapSpanKey: String

The amount of the map to display.

let MKLaunchOptionsShowsTrafficKey: String

A Boolean value indicating whether to display traffic information.

let MKLaunchOptionsCameraKey: String

The virtual camera to use for viewing the map.

See Also

Opening Items at Launch Time

Directions Mode Values

Strings representing the possible values of the MKLaunchOptionsDirectionsModeKey key.