OSMapViewDelegate Protocol Reference
Conforms to | NSObject |
Declared in | OSMapView.h |
Overview
OSMapViewDelegate
does not currently support “map loading” callbacks:
- (void)mapViewWillStartLoadingMap:(OSMapView *)mapView;
- (void)mapViewDidFinishLoadingMap:(OSMapView *)mapView;
- (void)mapViewDidFailLoadingMap:(OSMapView *)mapView withError:(NSError *)error;
Tasks
-
– mapView:viewForAnnotation:
-
– mapView:didAddAnnotationViews:
-
– mapView:annotationView:calloutAccessoryControlTapped:
-
– mapView:didSelectAnnotationView:
-
– mapView:didDeselectAnnotationView:
-
– mapView:annotationView:didChangeDragState:fromOldState:
-
– mapView:viewForOverlay:
-
– mapView:didAddOverlayViews:
-
– mapView:regionWillChangeAnimated:
-
– mapView:regionChangeAnimated:
Notification of intermediate changes to position/scale. This function is called before annotations/overlays
are updated, to allow the application to make any necessary changes. IMPORTANT this function is called often, in the main thread. The application should ensure that it has an efficient implementation. Any computationally expensive work should be done in a separate thread.
-
– mapView:regionDidChangeAnimated:
-
– mapViewWillStartLocatingUser:
-
– mapViewDidStopLocatingUser:
-
– mapView:didUpdateUserLocation:
-
– mapView:didFailToLocateUserWithError:
-
– mapView:didChangeUserTrackingMode:animated:
Instance Methods
mapView:annotationView:calloutAccessoryControlTapped:
- (void)mapView:(OSMapView *)mapView annotationView:(OSAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control
mapView:annotationView:didChangeDragState:fromOldState:
- (void)mapView:(OSMapView *)mapView annotationView:(OSAnnotationView *)annotationView didChangeDragState:(OSAnnotationViewDragState)newState fromOldState:(OSAnnotationViewDragState)oldState
mapView:didAddAnnotationViews:
- (void)mapView:(OSMapView *)mapView didAddAnnotationViews:(NSArray *)views
mapView:didAddOverlayViews:
- (void)mapView:(OSMapView *)mapView didAddOverlayViews:(NSArray *)views
mapView:didChangeUserTrackingMode:animated:
- (void)mapView:(OSMapView *)mapView didChangeUserTrackingMode:(OSUserTrackingMode)mode animated:(BOOL)animated
mapView:didDeselectAnnotationView:
- (void)mapView:(OSMapView *)mapView didDeselectAnnotationView:(OSAnnotationView *)view
mapView:didFailToLocateUserWithError:
- (void)mapView:(OSMapView *)mapView didFailToLocateUserWithError:(NSError *)error
mapView:didSelectAnnotationView:
- (void)mapView:(OSMapView *)mapView didSelectAnnotationView:(OSAnnotationView *)view
mapView:didUpdateUserLocation:
- (void)mapView:(OSMapView *)mapView didUpdateUserLocation:(OSUserLocation *)userLocation
mapView:regionChangeAnimated:
Notification of intermediate changes to position/scale. This function is called before annotations/overlays
are updated, to allow the application to make any necessary changes.
IMPORTANT this function is called often, in the main thread. The application should ensure that it has an
efficient implementation. Any computationally expensive work should be done in a separate thread.
- (void)mapView:(OSMapView *)map regionChangeAnimated:(BOOL)animated
Declared In
OSMapView.h
mapView:regionDidChangeAnimated:
- (void)mapView:(OSMapView *)map regionDidChangeAnimated:(BOOL)animated
mapView:regionWillChangeAnimated:
- (void)mapView:(OSMapView *)map regionWillChangeAnimated:(BOOL)animated
mapView:viewForAnnotation:
- (OSAnnotationView *)mapView:(OSMapView *)mapView viewForAnnotation:(id<OSAnnotation>)annotation