The BMMapViewDelegate protocol methods can notify you of changes related to the map.
More...
#import <BMMapView.h>
List of all members.
Detailed Description
The BMMapViewDelegate protocol methods can notify you of changes related to the map.
BMMapViewDelegate The BMMapViewDelegate methods are called when map tiles are being loaded, if the map view changes, and also after certain marker events.
Member Function Documentation
- (void) mapView: |
|
(BMMapView *) |
mapView |
didAddMarkerViews: |
|
(NSArray *) |
views |
|
|
| [optional] |
Called after the marker views have been added and positioned on the map.
- Parameters:
-
mapView | The map view. |
views | An array containing marker views that were added. The delegate can implement this method to animate the adding of the markers' views. Use the current positions of the marker views as the destinations of the animation. |
- (void) mapView: |
|
(BMMapView *) |
mapView |
markerView: |
|
(BMMarkerView *) |
view |
calloutAccessoryControlTapped: |
|
(UIControl *) |
control |
|
|
| [optional] |
Called when the user taps on left and right callout accessory UIControls.
- Parameters:
-
mapView | The map view. |
view | Marker view that was tapped. |
control | The control that was tapped. |
- (void) mapView: |
|
(BMMapView *) |
mapView |
regionDidChangeAnimated: |
|
(BOOL) |
animated |
|
|
| [optional] |
Called just after the map view region changed.
- Parameters:
-
mapView | The map view. |
animated | Indicates whether the change was animated. |
- (void) mapView: |
|
(BMMapView *) |
mapView |
regionWillChangeAnimated: |
|
(BOOL) |
animated |
|
|
| [optional] |
Called just before the map view region is about to change.
- Parameters:
-
mapView | The map view. |
animated | Inidicates whether the map view change is animated. |
Returns the view of the given marker object.
- Parameters:
-
mapView | The map view. |
marker | The marker. |
- Returns:
- The view of the given marker object.
- (void) mapViewDidFailLoadingMap: |
|
(BMMapView *) |
mapView |
withError: |
|
(NSError *) |
error |
|
|
| [optional] |
Called when the map view encountered an error while trying to get map data.
- Parameters:
-
mapView | The map view. |
error | The error. |
Use this method if you want to notify users that map data is unavailable. This method is called when there is no network connection or if other errors occurred while trying to retrieve map data.
- (void) mapViewDidFinishLoadingMap: |
|
(BMMapView *) |
mapView |
[optional] |
Called just after the map view finishes getting map data.
- Parameters:
-
This method is called after map tiles are downloaded from the server. For example, when panning and zooming, new map data is retrieved from the server to display the new region.
- (void) mapViewWillStartLoadingMap: |
|
(BMMapView *) |
mapView |
[optional] |
Called just before the map view makes requests to get map data.
- Parameters:
-
The documentation for this protocol was generated from the following file: