Platforms to show: All Mac Windows Linux Cross-Platform

Back to MKMapItemMBS class.

MKMapItemMBS.Constructor(Handle as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MapKit MBS MacFrameworks Plugin 21.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Constructor for creating an instanced based on an existing handle.

Useful if you get a MKMapItem reference from a declare.
The object is retained.

See also:

MKMapItemMBS.Constructor(PlaceMark as MKPlacemarkMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MapKit MBS MacFrameworks Plugin 19.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Initializes and returns a map item object using the specified placemark object.

placemark: The placemark object corresponding to the desired map location. This parameter must not be nil.

Use this method to create a map item for an existing placemark. Do not use it to create a map item representing the user’s current location. To do that, use the mapItemForCurrentLocation method instead.

See also:

MKMapItemMBS.openInMaps(LaunchOptions as Dictionary) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MapKit MBS MacFrameworks Plugin 19.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Open the Maps app and display this map item.

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 and the map type. For a list of keys you can put into this dictionary, see Launch Options Dictionary Keys.

This parameter may be nil.

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

You use this method to pass the current map item to the Maps app. If your map item contains descriptive information about the location (such as a name or URL), the Maps app displays that information at the specified coordinate.
If you specify the MKLaunchOptionsDirectionsModeKey option in the launchOptions dictionary, the Maps app interprets that as an attempt to map from the user’s current location to the location specified by this map item.
If you do not include the MKLaunchOptionsMapCenterKey and MKLaunchOptionsMapSpanKey keys in your launchOptions dictionary, Maps constructs a region around the current item. It uses that region to set the visible portion of the map.

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


The biggest plugin in space...