summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLTilePyramidOfflineRegion.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/darwin/src/MGLTilePyramidOfflineRegion.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/darwin/src/MGLTilePyramidOfflineRegion.mm')
-rw-r--r--platform/darwin/src/MGLTilePyramidOfflineRegion.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLTilePyramidOfflineRegion.mm b/platform/darwin/src/MGLTilePyramidOfflineRegion.mm
index 9b33d267df..f128fbb256 100644
--- a/platform/darwin/src/MGLTilePyramidOfflineRegion.mm
+++ b/platform/darwin/src/MGLTilePyramidOfflineRegion.mm
@@ -33,7 +33,7 @@
- (instancetype)initWithStyleURL:(NSURL *)styleURL bounds:(MGLCoordinateBounds)bounds fromZoomLevel:(double)minimumZoomLevel toZoomLevel:(double)maximumZoomLevel {
if (self = [super init]) {
if (!styleURL) {
- styleURL = [MGLStyle streetsStyleURLWithVersion:MGLStyleCurrentVersion];
+ styleURL = [MGLStyle streetsStyleURLWithVersion:MGLStyleDefaultVersion];
}
if (!styleURL.scheme) {