Select to view content in your preferred language

Individual points disappear when using custom renderer for clustering (4.29+)

219
7
2 weeks ago
mleahy_cl
Regular Contributor

Hi all,

I'm working with the cluster feature reduction on point feature layer, and implemented a result similar to the pie chart clustering sample: https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=featurereduction-cluster...

I have observed, that for versions 4.29, and 4.30, individual points disappear once you zoom in close enough that there are no points clustered on the screen.

This problem is not visible as-of version 4.28 (you can revise the versions used by the sample, and see that points no longer disappear at that version).

Is this a known bug, and/or is there a way to work around the issue?

0 Kudos
7 Replies
MichaelVolz
Esteemed Contributor

This is very strange.

Just curious where in the code it knows not to show a 1 in the circle when there is only 1 feature.  Is this just OOTB functionality not to show a number when there is only 1 feature?

It appears to me that the individual features start to show up at largest scale (most zoomed in) if you zoom into an area where at the largest scale there is still a cluster of features (symbol shows at least 2).

0 Kudos
mleahy_cl
Regular Contributor

@MichaelVolz I think you'd have to add labeling info to the layer, in addition to the labeling info in the feature reduction.

That said - I don't want to lose track of the topic of this thread.

Just to be clear - I'm not the only one seeing this issue, right?

0 Kudos
MichaelVolz
Esteemed Contributor

So when I change the sandbox version to 4.28 in both Chrome and Edge the single point features still disappear when zoomed in, so its behaving differently for me.  These single point features only persist if I first zoom in very close to a clustered feature with a label of at least 2.

0 Kudos
mleahy_cl
Regular Contributor

That is a bit different.  I reliably get the individual points with 4.28, and reliably lose them in 4.29+

 

Either way this seems like a bug...

0 Kudos
mleahy_cl
Regular Contributor

Adding to this, I also checked the 'next' version available like so:

<link rel="stylesheet" href="https://js.arcgis.com/next/esri/themes/light/main.css">
<script src="https://js.arcgis.com/next/"></script>

 The disappearing points problem persists there too.

0 Kudos
AnneFitz
Esri Regular Contributor

Hi, thank you for pointing this out! I'm able to reproduce as well. We'll take a look.

JoelBennett
MVP Regular Contributor

Perhaps it's related to the issue described in this post.

0 Kudos