-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
icon size jump using a nested data expression in a zoom expression #8895
Comments
I think this could have potentially fixed this. @ansis what do you think? |
The effect of this behavior on the jsfiddle is pretty subtle, but I forked it to use I also wonder if the problem is not in the interpolation of @tristen what do you think? |
@chloekraw even with the same comparable logic for |
This is a tricky case because the icon is affected both by Do you want both the text and icon to scale smoothly to a smaller size? Or just the icon? |
Hmm @ansis that particular example doesn't use |
mapbox-gl-js version:
v1.4.0
browser: Google Chrome
Version 77.0.3865.120 (Official Build) (64-bit)
Steps to Trigger Behavior
Create a zoom expression for the
icon-size
property with a data condition within it. i.e.Link to Demonstration
The bug looks like this:
The test case I have for this is pretty subtle and doesn't totally match the gif above. It's possible the addition of collision detection where there are more features on the map is causing it? https://jsfiddle.net/tristen/zn7ks40L/
Expected Behavior
There would be no jump in size but that the size of the icon would interpolate across the zoom expression set.
Actual Behavior
Icon jumps down in size when zooming from one zoom stop to another.
The text was updated successfully, but these errors were encountered: