Skip to content

No cluster with the specified id thrown (originId is too high) #221

Description

@luixo

Hello,
I'm using supercluster and found that on certain point sets it throws given error.

The example set can be found on pastebin.
Bounds and zoom I have:

"bounds": [
    37.41012735664174,
    55.62057887866567,
    37.82486124336097,
    55.879882425496476
],
"zoom": 10

The options of supercluster are:

"radius": 40,
"maxZoom": 999

Digging a little bit inside I found that error is originated because we're trying to index an array with 5 elements (index.points) with originId === 324 which was calculated from clusterId === 16642 and this.points.length === 6266.
I'm not familiar with library code enough to dig deeper.

Hope that helps, let me know if you need more info.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions