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 }}
Repository navigation
Expressions convert functions: output linear interpolation? #6840
In the functions to convert deprecated functions to expressions, we are converting functions with type exponential and base 1 to interpolation expressions with type ["exponential", 1]. While this is the most exact conversion, would it be more useful to convert these to type ["linear"]?
I have a quick clarification:
So when base equals 1, we would just change the expression to look like this expression = ['interpolate', ['linear'], ['number', ['get', parameters.property]]]
and this should be done in both the convertPropertyFunction and the convertZoomFunction?
So when base equals 1, we would just change the expression to look like this expression = ['interpolate', ['linear'], ['number', ['get', parameters.property]]]
Correct!
and this should be done in both the convertPropertyFunction and the convertZoomFunction?
Activity
Jo-IE commentedon Dec 5, 2019
Hi! I would like to work on this :)
I have a quick clarification:
So when
baseequals 1, we would just change the expression to look like thisexpression = ['interpolate', ['linear'], ['number', ['get', parameters.property]]]and this should be done in both the
convertPropertyFunctionand theconvertZoomFunction?Thank you!
tristen commentedon Dec 5, 2019
👋 @Jo-IE
Correct!
Correct too!
Jo-IE commentedon Dec 5, 2019
Thank you @tristen!