diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-05-02 15:34:46 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-05-06 17:17:17 -0700 |
commit | ca76b5b8030896692844a30199e5941bc0d7eba9 (patch) | |
tree | 945c34a7f512fa45134e3584fbfce37d922b9ab9 /platform/ios | |
parent | bac6fb4f84e02f54b7e5b54ff250ba3bad36806c (diff) | |
download | qtlocation-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.mm | 2 |
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]) |