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
I'm consistently having points disappear off the map at zoom levels of 9 or 10. It's not consistent on which zoom level is. I thought it might be #128 but then I cleaned the data. I'm hypothesizing there's something else about the data that I need to change/fix but I don't know what it is.
in the callback I see when the clusters disappear.
Of note, this.state.superCluster is where I save the initial cluster and how I reference it afterwards. Although, all things considered I don't think how I'm managing things is what's causing it to fail.
Here's a gist of the dataset which is === to collection in the first code snippet.
The text was updated successfully, but these errors were encountered:
So I figured this out. I originally added in the Math.round() because I was seeing issues. However, that might have been unrelated to my Supercluster implementation at the time. After removing that all is working correctly. The issue was the rounding was causing two numbers to be equal at times and thus there was no "box" for the clusters to be generated inside of.
I'm consistently having points disappear off the map at zoom levels of 9 or 10. It's not consistent on which zoom level is. I thought it might be #128 but then I cleaned the data. I'm hypothesizing there's something else about the data that I need to change/fix but I don't know what it is.
Video here: https://cargo.teamairship.com/EihXdM
I instantiate the cluster like this.
I then call this function for
onRegionDidChange
on theMapboxGL.MapView
component.If I put a
in the callback I see when the clusters disappear.
Of note,
this.state.superCluster
is where I save the initialcluster
and how I reference it afterwards. Although, all things considered I don't think how I'm managing things is what's causing it to fail.Here's a gist of the dataset which is
===
tocollection
in the first code snippet.The text was updated successfully, but these errors were encountered: