Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Add version argument to class members of Style, deprecate older ones #4702

Closed
tobrun opened this issue Apr 14, 2016 · 4 comments · Fixed by #4759
Closed

Add version argument to class members of Style, deprecate older ones #4702

tobrun opened this issue Apr 14, 2016 · 4 comments · Fixed by #4759
Labels
Android Mapbox Maps SDK for Android iOS Mapbox Maps SDK for iOS

Comments

@tobrun
Copy link
Member

tobrun commented Apr 14, 2016

Add a version argument to the Style class members. Each member documentation would say what the current latest version is, “as of” a certain date. Deprecate the unversioned methods.

Update:

For iOS:

Add a version argument to the MGLStyle class methods. Each method’s documentation would say what the current latest version is, “as of” a certain date. Deprecate the unversioned methods.

For Android:

Use same system as iOS, deprecate old Style.java class.

In line with deprecation of the Emerald style in #4577 .

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Apr 14, 2016
@tobrun tobrun added this to the android-v4.1.0 milestone Apr 14, 2016
@1ec5 1ec5 added the iOS Mapbox Maps SDK for iOS label Apr 14, 2016
@jfirebaugh
Copy link
Contributor

For Android, we should switch to a function-based approach like iOS: Style.mapboxSatelliteStyleURL(int version). That way we don't have to modify Style for each new style version release.

@tobrun
Copy link
Member Author

tobrun commented Apr 18, 2016

@jfirebaugh thank you for the input,
I updated the requirements above and divided them in iOS and Android specifically.

1ec5 added a commit that referenced this issue Apr 20, 2016
Updated default styles from v8 to v9. Deprecated the MGLMapView class methods in favor of new methods that take a version parameter. Deprecated Emerald outright in favor of Outdoors. Replaced usage of the unversioned MGLStyle methods with the corresponding versioned methods and MGLStyleCurrentVersion to ensure consistency.

Expanded MGLStyle unit tests to also assert that MGLStyle has the right number of style URL methods.

Replaced Emerald with Outdoors in iosapp and osxapp.

Fixes the iOS and OS X side of #4577 and #4702.
@1ec5
Copy link
Contributor

1ec5 commented Apr 20, 2016

Style URL APIs are getting versioned in the iOS and OS X SDKs in #4759.

@tobrun
Copy link
Member Author

tobrun commented Apr 20, 2016

@1ec5 great,
I will create a branch from #4759 and create a PR to get the Android changes in the same PR.

1ec5 added a commit that referenced this issue Apr 20, 2016
Updated default styles from v8 to v9. Deprecated the MGLMapView class methods in favor of new methods that take a version parameter. Deprecated Emerald outright in favor of Outdoors. Replaced usage of the unversioned MGLStyle methods with the corresponding versioned methods and MGLStyleCurrentVersion to ensure consistency.

Expanded MGLStyle unit tests to also assert that MGLStyle has the right number of style URL methods and that they’re all public. Linked the OS X SDK unit test bundle to libmbgl-core.a. Removed an unnecessary dependency on osxapp.

Replaced Emerald with Outdoors in iosapp and osxapp.

Fixes the iOS and OS X side of #4577 and #4702.
1ec5 added a commit that referenced this issue Apr 23, 2016
Updated default styles from v8 to v9. Deprecated the MGLMapView class methods in favor of new methods that take a version parameter. Deprecated Emerald outright in favor of Outdoors. Replaced usage of the unversioned MGLStyle methods with the corresponding versioned methods and MGLStyleCurrentVersion to ensure consistency.

Expanded MGLStyle unit tests to also assert that MGLStyle has the right number of style URL methods and that they’re all public. Linked the OS X SDK unit test bundle to libmbgl-core.a. Removed an unnecessary dependency on osxapp.

Replaced Emerald with Outdoors in iosapp and osxapp.

Fixes the iOS and OS X side of #4577 and #4702.
tobrun added a commit that referenced this issue Apr 23, 2016
…nition in favour versioned styling methods.
tobrun added a commit that referenced this issue Apr 24, 2016
tobrun added a commit that referenced this issue Apr 24, 2016
tobrun added a commit that referenced this issue Apr 26, 2016
tobrun added a commit that referenced this issue Apr 28, 2016
…nition in favour versioned styling methods.
1ec5 added a commit that referenced this issue May 2, 2016
Updated default styles from v8 to v9. Deprecated the MGLMapView class methods in favor of new methods that take a version parameter. Deprecated Emerald outright in favor of Outdoors. Replaced usage of the unversioned MGLStyle methods with the corresponding versioned methods and MGLStyleCurrentVersion to ensure consistency.

Expanded MGLStyle unit tests to also assert that MGLStyle has the right number of style URL methods and that they’re all public. Linked the OS X SDK unit test bundle to libmbgl-core.a. Removed an unnecessary dependency on osxapp.

Replaced Emerald with Outdoors in iosapp and osxapp.

Fixes the iOS and OS X side of #4577 and #4702.
1ec5 pushed a commit that referenced this issue May 2, 2016
…nition in favour versioned styling methods.
1ec5 added a commit that referenced this issue May 3, 2016
Updated default styles from v8 to v9. Deprecated the MGLMapView class methods in favor of new methods that take a version parameter. Deprecated Emerald outright in favor of Outdoors. Replaced usage of the unversioned MGLStyle methods with the corresponding versioned methods and MGLStyleCurrentVersion to ensure consistency.

Expanded MGLStyle unit tests to also assert that MGLStyle has the right number of style URL methods and that they’re all public. Linked the OS X SDK unit test bundle to libmbgl-core.a. Removed an unnecessary dependency on osxapp.

Replaced Emerald with Outdoors in iosapp and osxapp.

Fixes the iOS and OS X side of #4577 and #4702.
1ec5 pushed a commit that referenced this issue May 3, 2016
…nition in favour versioned styling methods.
1ec5 added a commit that referenced this issue May 3, 2016
Updated default styles from v8 to v9. Deprecated the MGLMapView class methods in favor of new methods that take a version parameter. Deprecated Emerald outright in favor of Outdoors. Replaced usage of the unversioned MGLStyle methods with the corresponding versioned methods and MGLStyleCurrentVersion to ensure consistency.

Expanded MGLStyle unit tests to also assert that MGLStyle has the right number of style URL methods and that they’re all public. Linked the OS X SDK unit test bundle to libmbgl-core.a. Removed an unnecessary dependency on osxapp.

Replaced Emerald with Outdoors in iosapp and osxapp.

Fixes the iOS and OS X side of #4577 and #4702.

Cherry-picked from 9273433.
1ec5 added a commit that referenced this issue May 6, 2016
Updated default styles from v8 to v9. Deprecated the MGLMapView class methods in favor of new methods that take a version parameter. Deprecated Emerald outright in favor of Outdoors. Replaced usage of the unversioned MGLStyle methods with the corresponding versioned methods and MGLStyleCurrentVersion to ensure consistency.

Expanded MGLStyle unit tests to also assert that MGLStyle has the right number of style URL methods and that they’re all public. Linked the OS X SDK unit test bundle to libmbgl-core.a. Removed an unnecessary dependency on osxapp.

Replaced Emerald with Outdoors in iosapp and osxapp.

Fixes the iOS and OS X side of #4577 and #4702.
1ec5 pushed a commit that referenced this issue May 6, 2016
…nition in favour versioned styling methods.
@1ec5 1ec5 closed this as completed in #4759 May 6, 2016
1ec5 added a commit that referenced this issue May 7, 2016
Updated default styles from v8 to v9. Deprecated the MGLMapView class methods in favor of new methods that take a version parameter. Deprecated Emerald outright in favor of Outdoors. Replaced usage of the unversioned MGLStyle methods with the corresponding versioned methods and MGLStyleCurrentVersion to ensure consistency.

Expanded MGLStyle unit tests to also assert that MGLStyle has the right number of style URL methods and that they’re all public. Linked the OS X SDK unit test bundle to libmbgl-core.a. Removed an unnecessary dependency on osxapp.

Replaced Emerald with Outdoors in iosapp and osxapp.

Fixes the iOS and OS X side of #4577 and #4702.

Cherry-picked from 2a4eead.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants