diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-08-24 14:47:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-24 14:47:28 -0700 |
commit | 5836738906292d70b4f95166c7d5e58a97d1208d (patch) | |
tree | 6a90de60ccfe24539acfa2f5b844038e0eea79d5 /platform/ios/src/MGLMapViewDelegate.h | |
parent | 4579fa031e5d871ff18dc1b1d3e9eef3e6b73f13 (diff) | |
download | qtlocation-mapboxgl-5836738906292d70b4f95166c7d5e58a97d1208d.tar.gz |
Document -mapViewDidFailLoadingMap:withError: (#6145)
* [macos] Implement -mapViewDidFailLoadingMap:withError:
* [ios] Documented -mapViewDidFailLoadingMap:withError:
Diffstat (limited to 'platform/ios/src/MGLMapViewDelegate.h')
-rw-r--r-- | platform/ios/src/MGLMapViewDelegate.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/platform/ios/src/MGLMapViewDelegate.h b/platform/ios/src/MGLMapViewDelegate.h index db1327685a..3ec7d0d58b 100644 --- a/platform/ios/src/MGLMapViewDelegate.h +++ b/platform/ios/src/MGLMapViewDelegate.h @@ -81,7 +81,17 @@ NS_ASSUME_NONNULL_BEGIN */ - (void)mapViewDidFinishLoadingMap:(MGLMapView *)mapView; -// TODO +/** + Tells the delegate that the map view was unable to load data needed for + displaying the map. + + This method may be called for a variety of reasons, including a network + connection failure or a failure to fetch the style from the server. You can use + the given error message to notify the user that map data is unavailable. + + @param mapView The map view that is unable to load the data. + @param error The reason the data could not be loaded. + */ - (void)mapViewDidFailLoadingMap:(MGLMapView *)mapView withError:(NSError *)error; // TODO |