You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Can you share a full example, e.g. on JSFiddle? This is likely caused by the 999 maxZoom — Supercluster isn't really designed to work with zooms over 32 (and even with that you'd get atomic-level precision on a map).
I changed maxZoom to a maximum zoom available in mapboxgl and it worked like a charm.
If the design fails for some reason on zooms over 32 - should it be capped by that number in the library?
Experimentally I found zoom level of 30 being the maximum before this error is thrown on my data.
Do you have an idea why exactly that number?
Should I open a PR?
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:
The options of supercluster are:
Digging a little bit inside I found that error is originated because we're trying to index an array with 5 elements (
index.points
) withoriginId === 324
which was calculated fromclusterId === 16642
andthis.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.
The text was updated successfully, but these errors were encountered: