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

Viewport numeric computation are somehow wrong when zoom is < 2 #1434

Open
Captain-Oski opened this issue Feb 28, 2020 · 0 comments
Open

Viewport numeric computation are somehow wrong when zoom is < 2 #1434

Captain-Oski opened this issue Feb 28, 2020 · 0 comments

Comments

@Captain-Oski
Copy link

Hello,

We have a SQL source :

It takes a points table, summarize the sales by administrative areas, and feed the source as a polygon layer (geometries are joined from another polygon layer)

See the jsfiddle code for deeper understanding of the SQL statement

We have a VIZ :

     color: @colors
      strokeWidth: 0.1
      @r1: $r1
      @rtaidu: $fsa
      @total_spent: $total_spent
      @customerCount: viewportSum($count)
      @spentSum: viewportSum($total_spent)
      @orderSum: viewportSum($total_orders)
      strokeColor: rgba(0,0,0,0)
      @histogram: viewportFeatures($total_spent,$here_city,$fsa,$r1)
      @colors: ramp(linear($total_spent), peach)

When zoom to level 2 and lesser, viewport calculation are randomly divided

SEE GIF

70598d7795cbf4c64a9ec601f98609c4

See the jsfiddle here :

https://jsfiddle.net/captainOski/d87wx6zs/11/

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

No branches or pull requests

1 participant