-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Never resolve tokens after evaluating a text-field or icon-image expression #5599
Milestone
Comments
Note that this implies that any auto-conversion of stop-based functions to expressions needs to convert |
anandthakker
pushed a commit
that referenced
this issue
Nov 6, 2017
anandthakker
pushed a commit
that referenced
this issue
Nov 6, 2017
jfirebaugh
pushed a commit
that referenced
this issue
Nov 6, 2017
jfirebaugh
pushed a commit
that referenced
this issue
Nov 6, 2017
It took me a while to figure out what this change was. Am I correct in concluding that my existing styles that use tokens like this will still work? "icon-image": "{shield}-{reflen}", |
Yes, correct, the change affects only expressions, not constant string values. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We want to deprecate and remove
{}
token interpolation in favor of string expressions likeconcat
, so we should avoid setting the precedent that interpolation is supported in combination with expressions. A text-field or icon-image expression that evaluates to a string containing{
and}
characters should always treat those characters literally, and never do interpolation, regardless of whether the expression is feature-constant or not.cc @anandthakker
The text was updated successfully, but these errors were encountered: