Platforms to show: All Mac Windows Linux Cross-Platform
MapKitViewControlMBS control
See also desktop control: DesktopMapKitViewControlMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
control | MapKit | MBS MacFrameworks Plugin | 14.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
This control is designed for Xojo (it may or may not work in REAL Studio if the Cocoa target is chosen)
As Xojo provides some events for us automatically like for context menu or mouse wheel, it does not mean that those events do work. The webview used in the map view seems to consume them before the plugin gets them.
- 46 events
- event annotationViewDidChangeDragState(mapView as MKMapViewMBS, annotationView as MKAnnotationViewMBS, newState as Integer, oldState as Integer)
- event beginGestureWithEvent(e as NSEventMBS) as boolean
- event BoundsChanged
- event Close
- event Closing
- event ClusterAnnotationForMemberAnnotations(mapView as MKMapViewMBS, memberAnnotations() as MKAnnotationMBS) as MKClusterAnnotationMBS
- event ConstructContextualMenu(base as MenuItem, x as Integer, y as Integer) as Boolean
- event ContextualMenuAction(hitItem as MenuItem) as Boolean
- event didAddAnnotationViews(mapView as MKMapViewMBS, AnnotationViews() as MKAnnotationViewMBS)
- event DidAddOverlayRenderers(mapView as MKMapViewMBS, renderers() as MKOverlayRendererMBS)
- event didAddOverlayViews(mapView as MKMapViewMBS, overlayViews() as NSViewMBS)
- event didCloseContextualMenu(menu as NSMenuMBS, NSEvent as NSEventMBS)
- event didDeselectAnnotationView(mapView as MKMapViewMBS, view as MKAnnotationViewMBS)
- event didFailLoadingMap(mapView as MKMapViewMBS, error as NSErrorMBS)
- event didFailToLocateUserWithError(mapView as MKMapViewMBS, error as NSErrorMBS)
- event didFinishLoadingMap(mapView as MKMapViewMBS)
- event DidFinishRenderingMap(mapView as MKMapViewMBS, fullyRendered as boolean)
- event didSelectAnnotationView(mapView as MKMapViewMBS, view as MKAnnotationViewMBS)
- event didStopLocatingUser(mapView as MKMapViewMBS)
- event didUpdateUserLocation(mapView as MKMapViewMBS, userLocation as MKUserLocationMBS)
- event EnableMenuItems
- event endGestureWithEvent(e as NSEventMBS) as boolean
- event FocusLost
- event FocusReceived
- event FrameChanged
- event GotFocus
- event LostFocus
- event magnifyWithEvent(e as NSEventMBS) as boolean
- event MenuBarSelected
- event MouseDown(x as Integer, y as Integer, Modifiers as Integer) As Boolean
- event MouseDrag(x as Integer, y as Integer)
- event MouseUp(x as Integer, y as Integer)
- event Open
- event Opening
- event pressureChange(e as NSEventMBS) as boolean
- event regionDidChangeAnimated(mapView as MKMapViewMBS, animated as boolean)
- event regionWillChangeAnimated(mapView as MKMapViewMBS, animated as boolean)
- event rendererForOverlay(mapView as MKMapViewMBS, overlay as MKOverlayMBS) as MKOverlayRendererMBS
- event rotateWithEvent(e as NSEventMBS) as boolean
- event ScaleFactorChanged(NewFactor as Double)
- event swipeWithEvent(e as NSEventMBS) as boolean
- event viewForAnnotation(mapView as MKMapViewMBS, annotation as MKAnnotationMBS) as MKAnnotationViewMBS
- event willShowContextualMenu(menu as NSMenuMBS, NSEvent as NSEventMBS)
- event willStartLoadingMap(mapView as MKMapViewMBS)
- event willStartLocatingUser(mapView as MKMapViewMBS)
- event WillStartRenderingMap(mapView as MKMapViewMBS)
- property View as MKMapViewMBS
Some examples using this control:
- /MacFrameworks/MapKit/MapKit Custom Icons example
- /MacFrameworks/MapKit/MapKit Custom Image
- /MacFrameworks/MapKit/MapKit Local Search
- /MacFrameworks/MapKit/MapKit Test
Blog Entries
- Apple MapView In Xojo
- News from the MBS Xojo Plugins in version 21.5
- New desktop controls
- MBS Xojo Plugins, version 21.3pr1
- Three new controls for iOS in Xojo
- MBS Xojo Plugins, version 20.6pr3
- MBS Xojo Plugins, version 19.5pr1
- MapKit Framework for Xojo
- MBS Xojo / Real Studio Plugins, version 14.2pr6
Xojo Developer Magazine
Videos
- Presentation from Xojo Developer Conference 2019 in Miami.
- Apple MapView In Xojo
- Apple MapView In Xojo
Release notes
- Version 21.3
- Changed MapKitViewControlMBS control to not raise exception on Windows/Linux if not supported.
- Version 21.0
- Added MapKitIOSControlMBS control for iOS, same as MapKitViewControlMBS control for macOS.
- Version 19.5
- Removed userDidClickAndHoldAtCoordinate and contextMenuItemsForAnnotationView events from MapKitViewControlMBS control. Those are no longer used.
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
MapKitIOSControlMBS - NSButtonControlMBS
