-
Notifications
You must be signed in to change notification settings - Fork 137
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
Support MapboxGL 'step' expression for color and height function types #169
Comments
Hi @kevinlib! Can you describe the |
I'd like to have discrete steps instead of having a continuous scale by interpolating. For reference: https://docs.mapbox.com/mapbox-gl-js/style-spec/#expressions-step. I couldn't find in the docs the supported values. |
@kevinlib As a quick fix, I would suggest binning your source data and assigning a You might also want to take a look at PR #161 . Longer term-- sounds like the issue here is you'd like support for the native MapboxGL step expression. Mind if I update the issue title to reflect that? Then someone can get started on a PR for this feature :) |
@kevinlib Also to strictly answer your original q: changing the |
@akacarlyann, thanks for being so responsive. I'll try out binning beforehand with |
When I create the Viz object and try to pass in a different color_function_type value (e.g. 'step'), the Viz display maintains the interpolate function even though the attribute in the Viz object has been changed.
Any ideas on why this is happening?
The text was updated successfully, but these errors were encountered: