Skip to content
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

symbol layout 'icon-size' < 0.1 is treated as 0 #7017

Closed
zoltan-mihalyi opened this issue Jul 24, 2018 · 0 comments · Fixed by #7125
Closed

symbol layout 'icon-size' < 0.1 is treated as 0 #7017

zoltan-mihalyi opened this issue Jul 24, 2018 · 0 comments · Fixed by #7125
Labels

Comments

@zoltan-mihalyi
Copy link
Contributor

zoltan-mihalyi commented Jul 24, 2018

mapbox-gl-js version: 0.47.0

browser: chrome, firefox

Steps to Trigger Behavior

  1. create symbol layer with 'icon-size' as expression (not constant)
  2. make sure the expression evaluates to 0.09

Link to Demonstration

https://jsfiddle.net/og5tbcLn/31/

In the demonstration, there is two features with size 0.1 and 0.09 calculated from property.
The icon with size 0.1 is displayed while the 0.09 is not.

If i set 'icon-size': 0.09 (not expression) it works as expected.
It also works as expected if the expression does not contain ['get', ...] expression

Expected Behavior

Display the symbol with 0.09 scale

Actual Behavior

Symbol is displayed with 0 scale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants