Open jasonccox opened 5 months ago
I ran into the same problem where, for some of my clusters, getGeoJsonClusterLeaves would return "No FeatureExtension ..." for no apparent reason.
What fixed the issue for me was reducing the clusterMaxZoom of my GeoJsonSource to 30 or below. I had it set to 99 because I always wanted to continue clustering. Please don't ask me how long it took me to figure that out...
Nice find! That seems to solve the problem for me as well. Still seems like a bug, but it's good to have a workaround.
Environment
Observed behavior and steps to reproduce
I'm unable to get the features corresponding to a point cluster. I have the following code that shows details about the features in a cluster when it's clicked:
For most of the clusters on my map, this code works fine. However, for some the call to
getGeoJsonClusterLeaves
results in the following error in the logs:Expected behavior
I expect
getGeoJsonClusterLeaves
to return a value, not an error, containing all of the features in the cluster.Notes / preliminary analysis
I attempted to write my own function to get the leaves by recursively calling
getGeoJsonClusterChildren
. In doing so, most of the calls togetGeoJsonClusterChildren
succeeded, and I was able to get most of the leaves, but a few of the calls returned this sameNo FeatureExtension...
error. As far as I can tell, there seems to be something wrong with a few of the sub-clusters that causes this behavior.Additional links and references
None