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

Add array type for storing coordinate values to allow improving accuracy for small radius #244

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ewelinaBS
Copy link

@ewelinaBS ewelinaBS commented Jan 5, 2024

For small radius <~50cm, the clustering is not accurate. (Probably the accuracy will be different depending on the latitude.) The problem originates from rounding the coordinates to float32.

Work done

Enable arrayType argument for supercluster constructor to determine in what format store the coordinates values.
Default Float32Array value will work the same as before.

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.

None yet

1 participant