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

Reduce point clustering flicker. #621

Merged
merged 1 commit into from
Sep 30, 2016
Merged

Conversation

manthey
Copy link
Contributor

@manthey manthey commented Sep 29, 2016

There are two different contributing factors:

(1) some times zoom rounding caused a flicker. In floating point, 7.99999999 is essentially 8.0, but their floors are different. In general, round zoom values to six places.

(2) gratuitous drawing during the zoom event. After reclustering, a point feature draw() call was being made. This is never necessary (at least on current master).

There are two different contributing factors:

(1) some times zoom rounding caused a flicker.  In floating point, 7.99999999 is essentially 8.0, but their floors are different.  In general, round zoom values to six places.

(2) gratuitous drawing during the zoom event.  After reclustering, a point feature draw() call was being made.  This is never necessary (at least on current master).
@manthey
Copy link
Contributor Author

manthey commented Sep 29, 2016

This resolves issue #620.

@codecov-io
Copy link

Current coverage is 82.85% (diff: 100%)

Merging #621 into master will increase coverage by 0.02%

@@             master       #621   diff @@
==========================================
  Files            85         85          
  Lines          8019       8019          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           6642       6644     +2   
+ Misses         1377       1375     -2   
  Partials          0          0          

Powered by Codecov. Last update 24d0bb1...a4f0c5c

@manthey manthey merged commit fb0895c into master Sep 30, 2016
@manthey manthey deleted the reduce-clustering-flicker branch September 30, 2016 17:57
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

Successfully merging this pull request may close these issues.

3 participants