You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Never resolve tokens after evaluating a text-field or icon-image expression #5599
We want to deprecate and remove {} token interpolation in favor of string expressions like concat, 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.
Note that this implies that any auto-conversion of stop-based functions to expressions needs to convert {}-interpolation to equivalent get and concat expressions.
Activity
jfirebaugh commentedon Nov 6, 2017
Note that this implies that any auto-conversion of stop-based functions to expressions needs to convert
{}-interpolation to equivalentgetandconcatexpressions.Add integration test for #5599
Never resolve tokens for text-field or icon-image expressions
Add integration test for #5599
Never resolve tokens for text-field or icon-image expressions
dpieri commentedon Nov 21, 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?
jfirebaugh commentedon Nov 21, 2017
Yes, correct, the change affects only expressions, not constant string values.