-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Conversation
There was a problem hiding this 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. | |||
* |
There was a problem hiding this comment.
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?
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? |
@anandthakker We can wait until the two repos merge or make the change upstream now. Whichever makes the most sense for your workflow. |
@lucaswoj changes made. Let's do the style-spec edit in a different PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.