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

Replace vendored wigglemaps with kdbush #685

Merged
merged 3 commits into from
Mar 30, 2017
Merged

Conversation

jbeezley
Copy link
Contributor

Depends on #684.

jbeezley and others added 3 commits March 30, 2017 09:07
Fixed some issues with the pointFeature:
- Setting the position on construction resulted in different behavior than setting it afterwards.
- Setting the clustering on construction allowed non-default values, but during the setter would only allow defaults.
- If set, the clustering could not be changed except by unsetting it and resetting it.
- The maximum radius of any point is used when deciding where to search for points, but it was potentially not calculated until after it was used.

Made some improvements:
- The position function wraps the position in another function to handle clustering.  If the position is not a function, then only one function call is made rather than two.
- Removed the unused internal _boundingBox function from the pointFeature.
- Added some comments about when you would want to use a different primitiveShape with the gl point feature.
@codecov-io
Copy link

codecov-io commented Mar 30, 2017

Codecov Report

Merging #685 into master will increase coverage by 3%.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master     #685    +/-   ##
========================================
+ Coverage   92.02%   95.02%    +3%     
========================================
  Files          84       83     -1     
  Lines        8857     8630   -227     
========================================
+ Hits         8151     8201    +50     
+ Misses        706      429   -277
Impacted Files Coverage Δ
src/index.js 100% <ø> (ø) ⬆️
src/pointFeature.js 100% <100%> (+42.06%) ⬆️
src/gl/pointFeature.js 100% <100%> (+7.29%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 31ddb36...d4c70a2. Read the comment docs.

@jbeezley jbeezley merged commit 21d8fb9 into master Mar 30, 2017
@jbeezley jbeezley deleted the replace-wigglemaps branch March 30, 2017 14:44
@aashish24
Copy link
Member

🎉 We have not 92+% coverage, thanks @jbeezley

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.

4 participants