diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2015-05-21 15:28:27 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2015-05-21 15:28:27 -0700 |
commit | 0689ad693ecad180d9dcd88e8de1c238963422fe (patch) | |
tree | 04f5159ae1e3e9b3ac42c09c5c8efaa52d5f1945 /include | |
parent | eb146c0431e95ed76b6d54cf4dd1f06031b10fc4 (diff) | |
parent | 00b2e13b64afd7eb0fde1e60db7ca75cafe85469 (diff) | |
download | qtlocation-mapboxgl-0689ad693ecad180d9dcd88e8de1c238963422fe.tar.gz |
Merge pull request #1561 from 1ec5-style-id-1500
mapID → styleID
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/ios/MGLMapView+IBAdditions.h | 2 | ||||
-rw-r--r-- | include/mbgl/ios/MGLMapView.h | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/include/mbgl/ios/MGLMapView+IBAdditions.h b/include/mbgl/ios/MGLMapView+IBAdditions.h index 69998a4749..23762cca94 100644 --- a/include/mbgl/ios/MGLMapView+IBAdditions.h +++ b/include/mbgl/ios/MGLMapView+IBAdditions.h @@ -8,7 +8,7 @@ // inspectables declared in MGLMapView.h are always sorted before those in // MGLMapView+IBAdditions.h, due to ASCII sort order. -@property (nonatomic) IBInspectable NSString *mapID; +@property (nonatomic) IBInspectable NSString *styleID; // Convenience properties related to the initial viewport. These properties // are not meant to be used outside of Interface Builder. latitude and longitude diff --git a/include/mbgl/ios/MGLMapView.h b/include/mbgl/ios/MGLMapView.h index 2d6589bf0d..c7bb8cf1f8 100644 --- a/include/mbgl/ios/MGLMapView.h +++ b/include/mbgl/ios/MGLMapView.h @@ -157,12 +157,13 @@ IB_DESIGNABLE /** @name Styling the Map */ -/** Mapbox map ID of the style currently displayed in the receiver, or `nil` if the style does not have a map ID. +/** Mapbox ID of the style currently displayed in the receiver, or `nil` if the style does not have an ID. * -* The style may lack a map ID if it is located at an HTTP, HTTPS, or local file URL. Use `styleURL` to get the URL in these cases. +* The style may lack an ID if it is located at an HTTP, HTTPS, or local file URL. Use `styleURL` to get the URL in these cases. * * To display the default style, set this property to `nil`. */ -@property (nonatomic) NSString *mapID; +@property (nonatomic) NSString *styleID; +@property (nonatomic) NSString *mapID __attribute__((unavailable("Use styleID."))); /** Returns the URLs to the styles bundled with the library. */ - (NSArray *)bundledStyleURLs; |