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 *)controlmapView:annotationView:didChangeDragState:fromOldState:
- (void)mapView:(OSMapView *)mapView annotationView:(OSAnnotationView *)annotationView didChangeDragState:(OSAnnotationViewDragState)newState fromOldState:(OSAnnotationViewDragState)oldStatemapView:didAddAnnotationViews:
- (void)mapView:(OSMapView *)mapView didAddAnnotationViews:(NSArray *)viewsmapView:didAddOverlayViews:
- (void)mapView:(OSMapView *)mapView didAddOverlayViews:(NSArray *)viewsmapView:didChangeUserTrackingMode:animated:
- (void)mapView:(OSMapView *)mapView didChangeUserTrackingMode:(OSUserTrackingMode)mode animated:(BOOL)animatedmapView:didDeselectAnnotationView:
- (void)mapView:(OSMapView *)mapView didDeselectAnnotationView:(OSAnnotationView *)viewmapView:didFailToLocateUserWithError:
- (void)mapView:(OSMapView *)mapView didFailToLocateUserWithError:(NSError *)errormapView:didSelectAnnotationView:
- (void)mapView:(OSMapView *)mapView didSelectAnnotationView:(OSAnnotationView *)viewmapView:didUpdateUserLocation:
- (void)mapView:(OSMapView *)mapView didUpdateUserLocation:(OSUserLocation *)userLocationmapView: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)animatedDeclared In
OSMapView.hmapView:regionDidChangeAnimated:
- (void)mapView:(OSMapView *)map regionDidChangeAnimated:(BOOL)animatedmapView:regionWillChangeAnimated:
- (void)mapView:(OSMapView *)map regionWillChangeAnimated:(BOOL)animatedmapView:viewForAnnotation:
- (OSAnnotationView *)mapView:(OSMapView *)mapView viewForAnnotation:(id<OSAnnotation>)annotation