[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.
This commit is contained in:
Minh Nguyễn
2016-05-02 15:34:46 -07:00
committed by Minh Nguyễn
parent 5ccb43477f
commit 2ec95bc490
10 changed files with 102 additions and 80 deletions

View File

@@ -329,7 +329,7 @@ mbgl::Duration MGLDurationInSeconds(NSTimeInterval duration)
if ( ! styleURL)
{
styleURL = [MGLStyle streetsStyleURLWithVersion:MGLStyleCurrentVersion];
styleURL = [MGLStyle streetsStyleURLWithVersion:MGLStyleDefaultVersion];
}
if ( ! [styleURL scheme])