We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
private func rankThresholdForZoomExpression() -> Exp { return Exp(.interpolate) { Exp(.linear) Exp(.zoom) 11.0 1 12.0 5 13.0 10 14.0 100 } }
exampleLayer.filter = Exp(.lte) { Exp(.get) { "rank" } rankThresholdForZoomExpression() }
When zooming on the map, this interpolation is only done on integer values. If we add a step at 13.5 for example it is ignored.
At zoom level 12.5, we would see 7.5 or 7 instead the value does not change until we reach zoom level 13, when it changes from 5 to 10.
Is it possible to do this, I have also tried using fractional steps and comparisons which also only evaluate on integers.
Is there any possible way have smoother filtering from zoom? Even just filtering when zoom is 12.5 would be great.
The text was updated successfully, but these errors were encountered:
Generate documentation for dependencies (mapbox#2262)
e469fc8
No branches or pull requests
Environment
Observed behavior and steps to reproduce
When zooming on the map, this interpolation is only done on integer values. If we add a step at 13.5 for example it is ignored.
Expected behavior
At zoom level 12.5, we would see 7.5 or 7 instead the value does not change until we reach zoom level 13, when it changes from 5 to 10.
Is it possible to do this, I have also tried using fractional steps and comparisons which also only evaluate on integers.
Is there any possible way have smoother filtering from zoom? Even just filtering when zoom is 12.5 would be great.
Notes / preliminary analysis
Additional links and references
The text was updated successfully, but these errors were encountered: