Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items

MapKitViewControlMBS.reverseGeocoderDidFindPlacemark(geocoder as MKReverseGeocoderMBS, placemark as MKPlacemarkMBS)
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 did find a placemark.

Feedback, Comments & Corrections

MapKitViewControlMBS.rotateWithEvent(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 rotation gesture.
Notes:
e: An event object representing the rotate 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.ScaleFactorChanged(NewFactor as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event MapKit MBS MacFrameworks Plugin 17.1 Yes No No No No
Function: The backing store scale factor has changed.
Notes: Please invalidate any cached bitmaps or other relevant state.

Feedback, Comments & Corrections

MapKitViewControlMBS.swipeWithEvent(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 swipe gesture.
Notes:
e: An event object representing the swipe 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.userDidClickAndHoldAtCoordinate(mapView as MKMapViewMBS, 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 user did click and hold the mouse button down.
Notes: Provides coordinate and you can do something there, like adding a pin.

Feedback, Comments & Corrections

MapKitViewControlMBS.viewForAnnotation(mapView as MKMapViewMBS, annotation as Variant) 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: Returns the view associated with the specified annotation object.
Notes:
mapView: The map view that requested the annotation view.
annotation: The object representing the annotation that is about to be displayed. In addition to your custom annotations, this object could be an MKUserLocation object representing the user's current location.

Returns the annotation view to display for the specified annotation or nil if you want to display a standard annotation view.

Rather than create a new view each time this method is called, you should use the dequeueReusableAnnotationViewWithIdentifier method of the MKMapView class to see if an existing annotation view of the desired type already exists. If one does exist, you should update the view to reflect the attributes of the specified annotation and return it. If a view of the appropriate type does not exist, you should create one, configure it with the needed annotation data, and return it.

If the object in the annotation parameter is an instance of the MKUserLocation class, you can provide a custom view to denote the user's location. To display the user's location using the default system view, return nil.

If you do not implement this method, or if you return nil from your implementation for annotations other than the user location annotation, the map view uses a standard pin annotation view.

Feedback, Comments & Corrections

MapKitViewControlMBS.viewForOverlay(mapView as MKMapViewMBS, overlay as Variant) 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: Asks the control for the overlay view to use when displaying the specified overlay object.
Notes:
mapView: The map view that requested the overlay view.
overlay: The object representing the overlay that is about to be displayed.

Returns the view to use when presenting the specified overlay on the map. If you return nil, no view is displayed for the specified overlay object.

Feedback, Comments & Corrections

MapKitViewControlMBS.willStartLoadingMap(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 is about to retrieve some map data.
Notes:
mapView: The map view that began loading the data.

This method is called whenever a new group of map tiles need to be downloaded from the server. This typically occurs whenever you expose portions of the map by panning or zooming the content. You can use this method to mark the time that it takes for the map view to load the data.

Feedback, Comments & Corrections

MapKitViewControlMBS.willStartLocatingUser(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 will start tracking the user's position.
Notes:
mapView: The map view that is tracking the user's location.

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

Feedback, Comments & Corrections

Previous items

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




Links
MBS Xojo Plugins