summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJustin R. Miller <incanus@codesorcery.net>2015-03-30 16:03:50 -0700
committerJustin R. Miller <incanus@codesorcery.net>2015-03-30 22:09:47 -0700
commit2782a8ce5b721838446bc93f2bc05e1964e221cb (patch)
tree541ec90e2772961bc368c7f8104d61c320e5638f /include
parentfd5b2dbed082b9d91a0b69ccb25c5d594d348c5d (diff)
downloadqtlocation-mapboxgl-2782a8ce5b721838446bc93f2bc05e1964e221cb.tar.gz
refs #892: Cocoa support for map ID style URLs
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/ios/MGLMapView.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/mbgl/ios/MGLMapView.h b/include/mbgl/ios/MGLMapView.h
index aa92b0c822..1fd3b69811 100644
--- a/include/mbgl/ios/MGLMapView.h
+++ b/include/mbgl/ios/MGLMapView.h
@@ -33,6 +33,13 @@
* @return An initialized map view, or `nil` if the map view was unable to be initialized. */
- (instancetype)initWithFrame:(CGRect)frame accessToken:(NSString *)accessToken bundledStyleNamed:(NSString *)styleName;
+/** Initialize a map view with a given frame, style URL, and access token.
+* @param frame The frame with which to initialize the map view.
+* @param accessToken A Mapbox API access token.
+* @param styleURL The map style URL to use. Can be either an HTTP/HTTPS URL or a Mapbox map ID style URL (`mapbox://<user.style>`).
+* @return An initialized map view, or `nil` if the map view was unable to be initialized. */
+- (instancetype)initWithFrame:(CGRect)frame accessToken:(NSString *)accessToken styleURL:(NSURL *)styleURL;
+
/** Initialize a map view with a given frame, the default style, and an access token.
* @param frame The frame with which to initialize the map view.
* @param accessToken A Mapbox API access token.