From b2e33a452d2ccc36c5c281d2090182f1395fc1b4 Mon Sep 17 00:00:00 2001 From: Fabian Guerra Soto Date: Fri, 15 Sep 2017 17:00:54 -0400 Subject: [ios, macos] Deprecate trafficDayStyleURL and trafficNightStyleURL (#9918) * [ios, macos] Deprecate trafficDayStyleURL and trafficNightStyleURL * [ios, macos] Update changelogs. * [ios, macos] Update trafficDayStyleURL and trafficNightStyleURL tests in MGLStyleTests. --- platform/darwin/src/MGLStyle.h | 46 +++++++++--------------------------------- 1 file changed, 9 insertions(+), 37 deletions(-) (limited to 'platform/darwin/src/MGLStyle.h') diff --git a/platform/darwin/src/MGLStyle.h b/platform/darwin/src/MGLStyle.h index 8c009d22c6..4bf1f6a4dc 100644 --- a/platform/darwin/src/MGLStyle.h +++ b/platform/darwin/src/MGLStyle.h @@ -270,66 +270,38 @@ MGL_EXPORT + (NSURL *)satelliteStreetsStyleURLWithVersion:(NSInteger)version; /** - Returns the URL to the current version of the + Returns the URL to version 2 of the Mapbox Traffic Day style. - Traffic Day color-codes roads based on live traffic congestion data. Traffic - data is currently available in - these select countries. - - @warning The return value may change in a future release of the SDK. If you use - any feature that depends on a specific aspect of a default style – for - instance, the minimum zoom level that includes roads – use the - `-trafficDayStyleURLWithVersion:` method instead. Such details may change - significantly from version to version. */ -+ (NSURL *)trafficDayStyleURL; ++ (NSURL *)trafficDayStyleURL __attribute__((deprecated("Create an NSURL object with the string “mapbox://styles/mapbox/traffic-day-v2”."))); /** Returns the URL to the given version of the Mapbox Traffic Day style as of publication. - - Traffic Day color-codes roads based on live traffic congestion data. Traffic - data is currently available in - these select countries. - + @param version A specific version of the style. */ -+ (NSURL *)trafficDayStyleURLWithVersion:(NSInteger)version; ++ (NSURL *)trafficDayStyleURLWithVersion:(NSInteger)version __attribute__((deprecated("Create an NSURL object with the string “mapbox://styles/mapbox/traffic-day-v2”.")));; /** - Returns the URL to the current version of the + Returns the URL to the version 2 of the Mapbox Traffic Night style. - Traffic Night color-codes roads based on live traffic congestion data and is - designed to maximize legibility in low-light situations. Traffic data is - currently available in - these select countries. - - @warning The return value may change in a future release of the SDK. If you use - any feature that depends on a specific aspect of a default style – for - instance, the minimum zoom level that includes roads – use the - `-trafficNightStyleURLWithVersion:` method instead. Such details may change - significantly from version to version. */ -+ (NSURL *)trafficNightStyleURL; ++ (NSURL *)trafficNightStyleURL __attribute__((deprecated("Create an NSURL object with the string “mapbox://styles/mapbox/traffic-night-v2”."))); /** - Returns the URL to the given version of the + Returns the URL to to the version 2 of the Mapbox Traffic Night style as of publication. - - Traffic Night color-codes roads based on live traffic congestion data and is - designed to maximize legibility in low-light situations. Traffic data is - currently available in - these select countries. - + @param version A specific version of the style. */ -+ (NSURL *)trafficNightStyleURLWithVersion:(NSInteger)version; ++ (NSURL *)trafficNightStyleURLWithVersion:(NSInteger)version __attribute__((deprecated("Create an NSURL object with the string “mapbox://styles/mapbox/traffic-night-v2”."))); #pragma mark Accessing Metadata About the Style -- cgit v1.2.1