Xojo Conferences
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

MKMapItemMBS.mapItemForCurrentLocation as MKMapItemMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method MapKit MBS MacFrameworks Plugin 19.0 Yes No No Yes, macOS only No
Function: Creates and returns a singleton map item object representing the device’s current location.
Notes: For privacy reasons, and because the user’s location can change, the map item returned by this method does not contain any coordinate data. When you need the actual location of the user, you must use the Core Location framework to retrieve it.

Feedback, Comments & Corrections

MKMapItemMBS.MKLaunchOptionsCameraKey as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method MapKit MBS MacFrameworks Plugin 19.0 Yes No No Yes, macOS only No
Function: The virtual camera to use for viewing the map.
Notes: The value of this key is an MKMapCameraMBS object that describes a virtual camera that can specify a 3D perspective for the map. If you do not specify this key, Maps uses its current settings to define the appearance of the map.

Feedback, Comments & Corrections

MKMapItemMBS.MKLaunchOptionsDirectionsModeDefault as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method MapKit MBS MacFrameworks Plugin 19.0 Yes No No Yes, macOS only No
Function: Directions that match the user’s preferred transportation type.

Feedback, Comments & Corrections

MKMapItemMBS.MKLaunchOptionsDirectionsModeDriving as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method MapKit MBS MacFrameworks Plugin 19.0 Yes No No Yes, macOS only No
Function: Driving directions between the specified start and end points.

Feedback, Comments & Corrections

MKMapItemMBS.MKLaunchOptionsDirectionsModeKey as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method MapKit MBS MacFrameworks Plugin 19.0 Yes No No Yes, macOS only No
Function: The mode of transportation.
Notes: The value of this key is an NSString corresponding to one of the values described in Directions Mode Values. You specify this key to tell the Maps app which mode of transport to use when generating directions.

Feedback, Comments & Corrections

MKMapItemMBS.MKLaunchOptionsDirectionsModeTransit as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method MapKit MBS MacFrameworks Plugin 19.0 Yes No No Yes, macOS only No
Function: Public transit directions between the specified start and end points.

Feedback, Comments & Corrections

MKMapItemMBS.MKLaunchOptionsDirectionsModeWalking as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method MapKit MBS MacFrameworks Plugin 19.0 Yes No No Yes, macOS only No
Function: Walking directions between the specified start and end points.

Feedback, Comments & Corrections

MKMapItemMBS.MKLaunchOptionsMapCenterKey as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method MapKit MBS MacFrameworks Plugin 19.0 Yes No No Yes, macOS only No
Function: The coordinate value on which to center the map.
Notes: The value of this key is an NSValue object that contains an encoded CLLocationCoordinate2D structure.

Feedback, Comments & Corrections

MKMapItemMBS.MKLaunchOptionsMapSpanKey as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method MapKit MBS MacFrameworks Plugin 19.0 Yes No No Yes, macOS only No
Function: The amount of the map to display.
Notes: The value of this key is an NSValue object that contains an encoded MKCoordinateSpan structure.

Feedback, Comments & Corrections

MKMapItemMBS.MKLaunchOptionsMapTypeKey as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method MapKit MBS MacFrameworks Plugin 19.0 Yes No No Yes, macOS only No
Function: The type of map (standard, satellite, or hybrid) to display.
Notes: The value of this key is an NSNumber object whose value is an integer corresponding to an MKMapType value.

Feedback, Comments & Corrections

MKMapItemMBS.MKLaunchOptionsShowsTrafficKey as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method MapKit MBS MacFrameworks Plugin 19.0 Yes No No Yes, macOS only No
Function: A Boolean value indicating whether to display traffic information.
Notes: The value of this key is a Boolean value. If you do not specify this key, Maps uses its current settings to determine whether or not to display traffic.

Feedback, Comments & Corrections

MKMapItemMBS.openMapsWithItems(items() as MKMapItemMBS, launchOptions as Dictionary) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method MapKit MBS MacFrameworks Plugin 19.0 Yes No No Yes, macOS only No
Function: Open the Maps app and display the specified map items.
Notes:
mapItems: An array containing one or more MKMapItemMBS objects representing the items you want to display on the map.
launchOptions: Additional information that the Maps app can use to configure the map display. For example, you can use the launch options to specify the visible map region, a 3D perspective, and the map type. For a list of keys you can put into this dictionary, see Launch Options Dictionary Keys.

You may specify nil for this parameter.

Returns true if the map items were successfully opened by the Maps app, or false if there was an error.

You use this method to pass one or more map items to the Maps app. For example, you might use this method to ask the Maps app to display location-based search results generated by your app. Maps displays pins at each location you specify and uses the contents of each map item object to display additional information.
If you specify the MKLaunchOptionsDirectionsModeKey option in the launchOptions dictionary, the mapItems array must have no more than two items in it. If the array contains one item, the Maps app generates directions from the user’s current location to the location specified by the map item. If the array contains two items, the Maps app generates directions from the location of the first item to the location of the second item in the array.
If you do not include the MKLaunchOptionsMapCenterKey and MKLaunchOptionsMapSpanKey keys in your launchOptions dictionary, Maps constructs a region that encompasses the provided items. It uses this region to set the visible portion of the map.

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS MacFrameworks Plugin.

The biggest plugin in space...




Links
MBS Xojo tutorial videos