summaryrefslogtreecommitdiff
path: root/platform/osx/src/MGLMapView.mm
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-05-02 15:34:46 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-05-06 11:06:52 -0700
commit2ec95bc490c5793b7b8a3aa9999f48d196ca8085 (patch)
tree413367e75df10a728a455d93cbfca80dda3b9662 /platform/osx/src/MGLMapView.mm
parent5ccb43477fc1d2028aef283d0db64848ebc9a347 (diff)
downloadqtlocation-mapboxgl-2ec95bc490c5793b7b8a3aa9999f48d196ca8085.tar.gz
[ios, osx] Renamed version constant, linked to more info
Renamed MGLStyleCurrentVersion to MGLStyleDefaultVersion to emphasize the constant’s role as an indicator of the default version used by SDK classes, which may be behind depending on release schedules. In the documentation for each style URL method, include the actual version number instead of the constant. In unit tests, verify that this documentation is in sync with the constant. Link each style URL method’s documentation to a forthcoming webpage on mapbox.com that describes the style in rich detail.
Diffstat (limited to 'platform/osx/src/MGLMapView.mm')
-rw-r--r--platform/osx/src/MGLMapView.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/osx/src/MGLMapView.mm b/platform/osx/src/MGLMapView.mm
index 0202c0dacb..741f0a7c02 100644
--- a/platform/osx/src/MGLMapView.mm
+++ b/platform/osx/src/MGLMapView.mm
@@ -532,7 +532,7 @@ public:
- (nonnull NSURL *)styleURL {
NSString *styleURLString = @(_mbglMap->getStyleURL().c_str()).mgl_stringOrNilIfEmpty;
- return styleURLString ? [NSURL URLWithString:styleURLString] : [MGLStyle streetsStyleURLWithVersion:MGLStyleCurrentVersion];
+ return styleURLString ? [NSURL URLWithString:styleURLString] : [MGLStyle streetsStyleURLWithVersion:MGLStyleDefaultVersion];
}
- (void)setStyleURL:(nullable NSURL *)styleURL {
@@ -547,7 +547,7 @@ public:
if (![MGLAccountManager accessToken]) {
return;
}
- styleURL = [MGLStyle streetsStyleURLWithVersion:MGLStyleCurrentVersion];
+ styleURL = [MGLStyle streetsStyleURLWithVersion:MGLStyleDefaultVersion];
}
if (![styleURL scheme]) {