FutureBasic Logo

<<    Index    >> FutureBasic

MKMapView   statement



Syntax
mkmapview tag, rect, wndTag

Description
The mkmapview statement puts a new mkmapview in the current output window, or alters an existing mkmapview's characteristics.

Requirements
Tlbx MapKit.incl header.

Parameters
Parameter
Description
tag A number (1 through 1000000) that you assign when you create the mkmapview and that you refer to when altering the view. The number you assign must be different from the tag value of all other existing widgets in the current window. A negative tag hides the mkmapview.
rect The mkmapview's enclosing rectangle. This can be specified in either of two ways:
(i) (x,y,w,h) where x,y are the origin and w,h the size of the view.
(ii) A CGRect value
wndTag An optional parameter for when the mkmapview's window is not the current output window. Note specifying this parameter does not bring the window to the front or make it the output window.
 
Dialog events
_mapViewRegionWillChange
_mapViewDidChangeVisibleRegion // macOS 10.13+
_mapViewRegionDidChange
_mapViewWillStartLoadingMap
_mapViewDidFinishLoadingMap
_mapViewDidFailLoadingMap
_mapViewWillStartRenderingMap
_mapViewDidFinishRenderingMap
_mapViewWillStartLocatingUser
_mapViewDidStopLocatingUser
_mapViewDidUpdateUserLocation
_mapViewDidFailToLocateUser
_mapViewViewForAnnotation
_mapViewDidAddAnnotationViews
_mapViewClusterAnnotationForMemberAnnotations // macOS 10.13+
_mapViewAnnotationViewDidChangeDragState
_mapViewDidSelectAnnotationView
_mapViewDidDeselectAnnotationView
_mapViewRendererForOverlay
_mapViewDidAddOverlayRenderers

 

Apple documentation
MKMapView