Platforms to show: All Mac Windows Linux Cross-Platform
MKMapItemMBS class
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| class | MapKit | MBS MacFrameworks Plugin | 19.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
A map item includes a geographic location and any interesting data that might apply to that location, such as the address at that location and the name of a business at that address. You can also create a special MKMapItem object representing the user's current location.
Use this class to do the following
- Share map-related data with the Maps app.
- Handle requests for directions that originate from the Maps app.
If you implement a routing app, Maps provides you with two MKMapItem objects representing the start and end points. Use the information in those two objects to plot the route and generate directions.
- 7 properties
- property Handle as Integer
- property isCurrentLocation as Boolean
- property Name as String
- property phoneNumber as String
- property placemark as MKPlacemarkMBS
- property timeZone as NSTimeZoneMBS
- property URL as String
- 3 methods
- method Constructor(Handle as Integer)
- method Constructor(PlaceMark as MKPlacemarkMBS)
- method openInMaps(LaunchOptions as Dictionary) as Boolean
- 12 shared methods
- shared method mapItemForCurrentLocation as MKMapItemMBS
- shared method MKLaunchOptionsCameraKey as String
- shared method MKLaunchOptionsDirectionsModeDefault as String
- shared method MKLaunchOptionsDirectionsModeDriving as String
- shared method MKLaunchOptionsDirectionsModeKey as String
- shared method MKLaunchOptionsDirectionsModeTransit as String
- shared method MKLaunchOptionsDirectionsModeWalking as String
- shared method MKLaunchOptionsMapCenterKey as String
- shared method MKLaunchOptionsMapSpanKey as String
- shared method MKLaunchOptionsMapTypeKey as String
- shared method MKLaunchOptionsShowsTrafficKey as String
- shared method openMapsWithItems(items() as MKMapItemMBS, launchOptions as Dictionary) as Boolean
This class has no sub classes.
Blog Entries
Xojo Developer Magazine
- 18.4, page 73: Maps Part 5 (Finding and Displaying Addresses), Implementing Maps in Xojo desktop apps with the MapKitMBS plug-in by Markus Winter
- 18.3, pages 79 to 80: Xojo Maps, Part 4, Finding and Displaying Addresses with the MapKitMBS plugin by Markus Winter
- 17.6, page 35: Maps Part 2, Implementing Maps in Xojo desktop apps with the MapKitMBS plugin by Markus Winter
Videos
Some methods using this class:
- MKLocalSearchResponseMBS.mapItems as MKMapItemMBS()
Some properties using for this class:
- MKDirectionsRequestMBS.destination as MKMapItemMBS
- MKDirectionsRequestMBS.source as MKMapItemMBS
- MKDirectionsResponseMBS.destination as MKMapItemMBS
- MKDirectionsResponseMBS.source as MKMapItemMBS
- MKETAResponseMBS.destination as MKMapItemMBS
- MKETAResponseMBS.source as MKMapItemMBS
Some examples using this class:
Some related classes:
- class MKDirectionsRequestMBS
- class MKDirectionsResponseMBS
- class MKETAResponseMBS
- class MKLocalSearchResponseMBS
- class MKPlacemarkMBS
- class NSTimeZoneMBS
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
MKMapCameraMBS - MKMapPointMBS