Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deprecation notice for paint classes #4038

Merged
merged 3 commits into from
Jan 25, 2017

Conversation

anandthakker
Copy link
Contributor

No description provided.

Copy link
Contributor

@lucaswoj lucaswoj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Class-specific paint properties

This phrasing makes it seem as though we are removing a subset of the "class" functionality. Would you be open to some slightly stronger wording like:

Note: Style classes are deprecated and will be removed in an upcoming release of Mapbox GL JS.

@@ -256,6 +256,8 @@ class Map extends Camera {
* in an HTML element's `class` attribute. To learn more about Mapbox style classes, read about
* [Layers](https://www.mapbox.com/mapbox-gl-style-spec/#layers) in the style specification.
*
* **Note:** Class-specific paint properties are deprecated and will be removed in an upcoming release of Mapbox GL JS.
*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about adding a util.warnOnce to the body of these methods?

@anandthakker
Copy link
Contributor Author

This phrasing makes it seem as though we are removing a subset of the "class" functionality. Would you be open to some slightly stronger wording like:

Note: Style classes are deprecated and will be removed in an upcoming release of Mapbox GL JS.

Yeah, nice edit. I stole the language from the style-spec docs, so we may want to change it there as well -- I could wait on that till after you're done merging it into this repo, though?

@lucaswoj
Copy link
Contributor

@anandthakker We can wait until the two repos merge or make the change upstream now. Whichever makes the most sense for your workflow.

@anandthakker
Copy link
Contributor Author

@lucaswoj changes made. Let's do the style-spec edit in a different PR

Copy link
Contributor

@lucaswoj lucaswoj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@anandthakker anandthakker merged commit c002867 into mb-pages Jan 25, 2017
@anandthakker anandthakker deleted the deprecate-paint-classes branch January 25, 2017 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants