[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:
committed by
Minh Nguyễn
parent
5ccb43477f
commit
2ec95bc490
@@ -329,7 +329,7 @@ mbgl::Duration MGLDurationInSeconds(NSTimeInterval duration)
|
||||
|
||||
if ( ! styleURL)
|
||||
{
|
||||
styleURL = [MGLStyle streetsStyleURLWithVersion:MGLStyleCurrentVersion];
|
||||
styleURL = [MGLStyle streetsStyleURLWithVersion:MGLStyleDefaultVersion];
|
||||
}
|
||||
|
||||
if ( ! [styleURL scheme])
|
||||
|
||||
Reference in New Issue
Block a user