Skip to content

The clustering behavior is strange when the zoom level is above 20 #243

Closed

Description

@strstrst

Supercluster stores all positions internally on a 32-bit floating point array. When it converts these positions to 32 bits with Math.fround, 2 different positions can be converted to the same position. As a result, these 2 positions are always clustered. Could you add a parameter to configure the use of Math.fround?

Activity

  1. andrewharvey commented on Aug 14, 2024

    @andrewharvey
    Contributor

    See #244

  2. mourner commented on Aug 10, 2026

    @mourner
    Member

    Fixed by #258.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions