Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

Next items

MapKitViewControlMBS.annotationViewDidChangeDragState(mapView as MKMapViewMBS, annotationView as MKAnnotationViewMBS, newState as Integer, oldState as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 14.1 Yes No No No No
Function: Tells the control that the drag state of one of its annotation views changed.
Notes:
mapView: The map view containing the annotation view.
annotationView: The annotation view whose drag state changed.
newState: The new drag state of the annotation view.
oldState: The previous drag state of the annotation view.

The drag state typically changes in response to user interactions with the annotation view. However, the annotation view itself is responsible for changing that state as well.

Feedback, Comments & Corrections

MapKitViewControlMBS.beginGestureWithEvent(e as NSEventMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 14.2 Yes No No No No
Function: Informs the receiver that the user has begun a touch gesture.
Notes:
e: An event object representing the gesture beginning.
The event will be sent to the view under the touch in the key window.
Available in Mac OS X v10.6 and later.
Return true if you handled this event.

Feedback, Comments & Corrections

MapKitViewControlMBS.BoundsChanged
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 17.1 Yes No No No No
Function: The event called when the bounds, but not the frame, changed.

Feedback, Comments & Corrections

MapKitViewControlMBS.contextMenuItemsForAnnotationView(mapView as MKMapViewMBS, view as MKAnnotationViewMBS) as NSMenuItemMBS()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 14.1 Yes No No No No
Function: Your control can provide menuitems to show a contextual menu on an annotation view.

Feedback, Comments & Corrections

MapKitViewControlMBS.didAddAnnotationViews(mapView as MKMapViewMBS, AnnotationViews() as MKAnnotationViewMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 14.1 Yes No No No No
Function: Tells the control that one or more annotation views were added to the map.
Notes:
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.

Feedback, Comments & Corrections

MapKitViewControlMBS.didAddOverlayViews(mapView as MKMapViewMBS, overlayViews() as MKOverlayViewMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 14.1 Yes No No No No
Function: Tells the control that one or more overlay views were added to the map.
Notes:
mapView: The map view that added the overlay views.
overlayViews: An array of MKOverlayView objects representing the views that were added.

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

Feedback, Comments & Corrections

MapKitViewControlMBS.didDeselectAnnotationView(mapView as MKMapViewMBS, view as MKAnnotationViewMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 14.1 Yes No No No No
Function: Tells the control that one of its annotation views was deselected.
Notes:
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.

Feedback, Comments & Corrections

MapKitViewControlMBS.didFailLoadingMap(mapView as MKMapViewMBS, error as NSErrorMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 14.1 Yes No No No No
Function: Tells the control that the specified view was unable to load the map data.
Notes:
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.

Feedback, Comments & Corrections

MapKitViewControlMBS.didFailToLocateUserWithError(mapView as MKMapViewMBS, error as NSErrorMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 14.1 Yes No No No No
Function: Tells the control that an attempt to locate the user's position failed.
Notes:
mapView: The map view that is tracking the user's location.
error: An error object containing the reason why location tracking failed.

Feedback, Comments & Corrections

MapKitViewControlMBS.didFinishLoadingMap(mapView as MKMapViewMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 14.1 Yes No No No No
Function: Tells the control that the specified map view successfully loaded the needed map data.
Notes:
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.

Feedback, Comments & Corrections

MapKitViewControlMBS.didSelectAnnotationView(mapView as MKMapViewMBS, view as MKAnnotationViewMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 14.1 Yes No No No No
Function: Tells the control that one of its annotation views was selected.
Notes:
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.

Feedback, Comments & Corrections

MapKitViewControlMBS.didStopLocatingUser(mapView as MKMapViewMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 14.1 Yes No No No No
Function: Tells the control that the map view stopped tracking the user's location.
Notes:
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.

Feedback, Comments & Corrections

MapKitViewControlMBS.didUpdateUserLocation(mapView as MKMapViewMBS, userLocation as MKUserLocationMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 14.1 Yes No No No No
Function: Tells the control that the location of the user was updated.
Notes:
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.

Feedback, Comments & Corrections

MapKitViewControlMBS.EnableMenuItems
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 17.1 Yes Yes Yes No No
Function: The event where you can enable menu items.

Feedback, Comments & Corrections

MapKitViewControlMBS.endGestureWithEvent(e as NSEventMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 14.2 Yes No No No No
Function: Informs the receiver that the user has ended a touch gesture.
Notes:
e: An event object representing the gesture end.
Available in Mac OS X v10.6 and later.
Return true if you handled this event.

Feedback, Comments & Corrections

MapKitViewControlMBS.FrameChanged
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 17.1 Yes No No No No
Function: The event called when the frame changed.

Feedback, Comments & Corrections

MapKitViewControlMBS.geocoderDidFailWithError(geocoder as MKGeocoderMBS, error as NSErrorMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 14.1 Yes No No No No
Function: The geocoder failed to map address to coordinate.

Feedback, Comments & Corrections

MapKitViewControlMBS.geocoderDidFindCoordinate(geocoder as MKGeocoderMBS, coordinate as CLLocationCoordinate2DMBS, Latitude as Double, Longitude as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 14.1 Yes No No No No
Function: The geocoder did find a coordinate.

Feedback, Comments & Corrections

MapKitViewControlMBS.GotFocus
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 16.5 Yes No No No No
Function: The control itself got focus.
Notes: This only fires if the control itself got focus and not a sub control.

Feedback, Comments & Corrections

MapKitViewControlMBS.LostFocus
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 16.5 Yes No No No No
Function: The control lost focus.
Notes: This only fires if the control itself lost focus and not a sub control.

Feedback, Comments & Corrections

MapKitViewControlMBS.magnifyWithEvent(e as NSEventMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 14.2 Yes No No No No
Function: Informs the receiver that the user has begun a pinch gesture.
Notes:
e: An event object representing the magnify gesture.
The event will be sent to the view under the touch in the key window.
Available in Mac OS X v10.6 and later.
Return true if you handled this event.

Feedback, Comments & Corrections

MapKitViewControlMBS.MenuAction(HitItem as MenuItem) As Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 17.1 Yes No No No No
Function: Called when a menuitem is choosen.
Notes: This allows the control to react on its relevant menu items. Please return true if you handled it or false to give others a chance.

Feedback, Comments & Corrections

MapKitViewControlMBS.MouseDown(x as Integer, y as Integer, Modifiers as Integer) As Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 17.1 Yes No No No No
Function: The mouse button was pressed inside the control’s region at the location passed in to x, y.
Notes:
The coordinates x and y are local to the control, i.e. they represent the position of the mouse click relative to the upper-left corner or the Control.
Return True if you are going to handle the MouseDown. In such a case:
  • The Action event, if any, will not execute and the state of the object will not change.
  • You will receive the MouseDrag and MouseUp events.
If you return False, the system handles the MouseDown so the above event handlers do not get called.

Feedback, Comments & Corrections

MapKitViewControlMBS.MouseDrag(x as Integer, y as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 17.1 Yes No No No No
Function: This event fires continuously after the mouse button was pressed inside the Control.
Notes:
Mouse location is local to the control passed in to x, y.
As this event is fired continuously (hundreds of time per second), it is your responsibility to determine if the mouse has really moved.

Feedback, Comments & Corrections

MapKitViewControlMBS.MouseUp(x as Integer, y as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 17.1 Yes No No No No
Function: The mouse button was released.
Notes: Use the x and y parameters to determine if the mouse button was released within the control's boundaries.

Feedback, Comments & Corrections

MapKitViewControlMBS.pressureChange(e as NSEventMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 15.1 Yes Yes Yes No No
Function: Informs the current object that a pressure change occurred on a system that supports pressure sensitivity.
Notes:
This method is invoked automatically in response to user actions. event is the event that initiated the change in pressure.
Available in OS X v10.10.3 and later.

Feedback, Comments & Corrections

MapKitViewControlMBS.regionDidChangeAnimated(mapView as MKMapViewMBS, animated as boolean)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 14.1 Yes No No No No
Function: Tells the control that the region displayed by the map view just changed.
Notes:
mapView: The map view whose visible region changed.
animated: If true, the change to the new region was animated.

This method is called whenever the currently displayed map region changes. During scrolling, this method may be called many times to report updates to the map position. Therefore, your implementation of this method should be as lightweight as possible to avoid affecting scrolling performance.

Feedback, Comments & Corrections

MapKitViewControlMBS.regionWillChangeAnimated(mapView as MKMapViewMBS, animated as boolean)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 14.1 Yes No No No No
Function: Tells the control that the region displayed by the map view is about to change.
Notes:
mapView: The map view whose visible region is about to change.
animated: If true, the change to the new region will be animated. If NO, the change will be made immediately.

This method is called whenever the currently displayed map region changes. During scrolling, this method may be called many times to report updates to the map position. Therefore, your implementation of this method should be as lightweight as possible to avoid affecting scrolling performance.

Feedback, Comments & Corrections

MapKitViewControlMBS.reverseGeocoderDidFailWithError(geocoder as MKReverseGeocoderMBS, error as NSErrorMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 14.1 Yes No No No No
Function: The reverse geocoder failed with an error.

Feedback, Comments & Corrections

Next items

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




Links
MBS Xojo Plugins