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
What's totally curious, is that I have another interpolator based on a user property that works. But what I don't get is why I don't need to preface the variable name with user_ in functioning example below. Draw is sooo mysterious.
// WORKS boost size of text based on properties.starsAverage
iconTextSizeInterpolator: mapboxgl.Expression =
// starsAverage is 0 to 5
[
"let",
"starBoost",
["*", ["coalesce", ["get", "starsAverage"], 0], 0.5], // 0 to 2.5
[
"interpolate",
["linear"],
["zoom"],
0,
0,
11.5,
0,
12,
["+", ["var", "starBoost"], 11],
],
];
mapbox-gl-js version: 3.1.2
mapbox-gl-draw version: 1.4.3
Steps to Trigger Behavior
Here's an example of an expression I would expect should work, but seems to not. No errors are shown, but the icon size doesn't change when selected.
which is referenced like:
What's totally curious, is that I have another interpolator based on a user property that works. But what I don't get is why I don't need to preface the variable name with
user_
in functioning example below. Draw is sooo mysterious.referenced as:
Expected Behavior
Icon gets twice as large when selected
Actual Behavior
No change in icon size
The text was updated successfully, but these errors were encountered: