summaryrefslogtreecommitdiff
path: root/platform/ios
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 17:17:17 -0700
commitca76b5b8030896692844a30199e5941bc0d7eba9 (patch)
tree945c34a7f512fa45134e3584fbfce37d922b9ab9 /platform/ios
parentbac6fb4f84e02f54b7e5b54ff250ba3bad36806c (diff)
downloadqtlocation-mapboxgl-ca76b5b8030896692844a30199e5941bc0d7eba9.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. Cherry-picked from 2ec95bc490c5793b7b8a3aa9999f48d196ca8085.
Diffstat (limited to 'platform/ios')
-rw-r--r--platform/ios/src/MGLMapView.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm
index 8d6688e7e6..359827ae61 100644
--- a/platform/ios/src/MGLMapView.mm
+++ b/platform/ios/src/MGLMapView.mm
@@ -276,7 +276,7 @@ mbgl::Duration MGLDurationInSeconds(NSTimeInterval duration)
if ( ! styleURL)
{
- styleURL = [MGLStyle streetsStyleURLWithVersion:MGLStyleCurrentVersion];
+ styleURL = [MGLStyle streetsStyleURLWithVersion:MGLStyleDefaultVersion];
}
if ( ! [styleURL scheme])