summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLMapViewDelegate.h
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2016-10-07 15:14:19 -0400
committerJason Wray <friedbunny@users.noreply.github.com>2016-10-11 13:07:10 -0400
commit5d85dbd7cd91e66ca791c6e6f73774f4f1323a87 (patch)
tree6e6e1254069b2b39e867934972df4a4ee9c0bb44 /platform/ios/src/MGLMapViewDelegate.h
parent9946e605365f8d4a718dfd85b4e28ca653a787c1 (diff)
downloadqtlocation-mapboxgl-5d85dbd7cd91e66ca791c6e6f73774f4f1323a87.tar.gz
[ios, macos] Add -mapView:didFinishLoadingStyle: delegate method
Diffstat (limited to 'platform/ios/src/MGLMapViewDelegate.h')
-rw-r--r--platform/ios/src/MGLMapViewDelegate.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/platform/ios/src/MGLMapViewDelegate.h b/platform/ios/src/MGLMapViewDelegate.h
index ea9933f870..c07c43d3e4 100644
--- a/platform/ios/src/MGLMapViewDelegate.h
+++ b/platform/ios/src/MGLMapViewDelegate.h
@@ -126,6 +126,23 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)mapViewDidFinishRenderingFrame:(MGLMapView *)mapView fullyRendered:(BOOL)fullyRendered;
+/**
+ Tells the delegate that the map has just finished loading a style.
+
+ This method is called during the initialization of the map view and after any
+ subsequent loading of a new style. This method is called between the
+ `-mapViewWillStartRenderingMap:` and `-mapViewDidFinishRenderingMap:` delegate
+ methods. Changes to sources or layers of the current style do not cause this
+ method to be called.
+
+ This method is the earliest opportunity to modify the layout or appearance of
+ the current style before the map view is displayed to the user.
+
+ @param mapView The map view that has just loaded a style.
+ @param style The style that was loaded.
+ */
+- (void)mapView:(MGLMapView *)mapView didFinishLoadingStyle:(MGLStyle *)style;
+
#pragma mark Tracking User Location
/**