Platforms to show: All Mac Windows Linux Cross-Platform

Back to MapKitIOSControlMBS control.

MapKitIOSControlMBS.didAddAnnotationViews(mapView as MKMapViewMBS, AnnotationViews() as MKAnnotationViewMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event MapKit MBS MacFrameworks Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes Desktop & iOS
Tells the control that one or more annotation views were added to the map.

mapView: The map view that added the annotation views.
views: An array of MKAnnotationView objects representing the views that were added.

By the time this method is called, the specified views are already added to the map.

MapKitIOSControlMBS.DidAddOverlayRenderers(mapView as MKMapViewMBS, renderers() as MKOverlayRendererMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event MapKit MBS MacFrameworks Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes Desktop & iOS
Tells you that one or more renderer objects were added to the map.

mapView: The map view that added the renderer objects.
renderers: The renderer objects that were added.

The map view adds renderer objects when it needs them to draw their contents, which might be prior to those contents appearing onscreen. It calls this method to let you know that the renderer is active and in use. By the time this method is called, the specified renderers have already been added to the map.

MapKitIOSControlMBS.didAddOverlayViews(mapView as MKMapViewMBS, overlayViews() as NSViewMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event MapKit MBS MacFrameworks Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes Desktop & iOS
The event to inform you about added overlay views.

MapKitIOSControlMBS.didDeselectAnnotationView(mapView as MKMapViewMBS, view as MKAnnotationViewMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event MapKit MBS MacFrameworks Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes Desktop & iOS
Tells the control that one of its annotation views was deselected.

mapView: The map view containing the annotation view.
view: The annotation view that was deselected.

You can use this method to track changes in the selection state of annotation views.

MapKitIOSControlMBS.didFailLoadingMap(mapView as MKMapViewMBS, error as NSErrorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event MapKit MBS MacFrameworks Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes Desktop & iOS
Tells the control that the specified view was unable to load the map data.

mapView: The map view that started the load operation.
error: The reason that the map data could not be loaded.

This method might be called in situations where the device does not have access to the network or is unable to load the map data for some reason. It may also be called if a request for additional map tiles comes in while a previous request for tiles is still pending. You can use this message to notify the user that the map data is unavailable.

MapKitIOSControlMBS.didFailToLocateUserWithError(mapView as MKMapViewMBS, error as NSErrorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event MapKit MBS MacFrameworks Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes Desktop & iOS
Tells the control that an attempt to locate the user's position failed.

mapView: The map view that is tracking the user's location.
error: An error object containing the reason why location tracking failed.

MapKitIOSControlMBS.didFinishLoadingMap(mapView as MKMapViewMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event MapKit MBS MacFrameworks Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes Desktop & iOS
Tells the control that the specified map view successfully loaded the needed map data.

mapView: The map view that started the load operation.

This method is called when the map tiles associated with the current request have been loaded. Map tiles are requested when a new visible area is scrolled into view and tiles are not already available. Map tiles may also be requested for portions of the map that are not currently visible. For example, the map view may load tiles immediately surrounding the currently visible area as needed to handle small pans by the user.

MapKitIOSControlMBS.DidFinishRenderingMap(mapView as MKMapViewMBS, fullyRendered as boolean)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event MapKit MBS MacFrameworks Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes Desktop & iOS
Tells you that the map view has finished rendering all visible tiles.

fullyRendered: This parameter is set to true if the map view was able to render all tiles completely or false if errors prevented all tiles from being rendered.

This method lets you know when the map view finishes rendering all of the currently visible tiles to the best of its ability. This method is called regardless of whether all tiles were rendered successfully. If there were errors loading one or more tiles that prevented map view from rendering them, the fullyRendered parameter is set to false.

MapKitIOSControlMBS.didSelectAnnotationView(mapView as MKMapViewMBS, view as MKAnnotationViewMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event MapKit MBS MacFrameworks Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes Desktop & iOS
Tells the control that one of its annotation views was selected.

mapView: The map view containing the annotation view.
view: The annotation view that was selected.

You can use this method to track changes in the selection state of annotation views.

MapKitIOSControlMBS.didStopLocatingUser(mapView as MKMapViewMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event MapKit MBS MacFrameworks Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes Desktop & iOS
Tells the control that the map view stopped tracking the user's location.

mapView: The map view that stopped tracking the user's location.

This method is called when the value of the showsUserLocation property changes to false.

MapKitIOSControlMBS.didUpdateUserLocation(mapView as MKMapViewMBS, userLocation as MKUserLocationMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event MapKit MBS MacFrameworks Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes Desktop & iOS
Tells the control that the location of the user was updated.

mapView: The map view that is tracking the user's location.
userLocation: The location object representing the user's latest location. This property may be nil.

While the showsUserLocation property is set to true, this method is called whenever a new location update is received by the map view. This method is also called if the map view's user tracking mode is set to MKUserTrackingModeFollowWithHeading and the heading changes.

This method is not called if the application is currently running in the background. If you want to receive location updates while running in the background, you must use the Core Location framework.

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


The biggest plugin in space...