Select to view content in your preferred language

4.30 - LabelingInfo BUG

107
4
yesterday
michaelkdev
New Contributor III

Hi all,

Found a bug with layer's labelingInfo when adding, updating or deleting graphics (with applyEdits).

Made a codepen to reproduce this issue: 

https://codepen.io/michaelk95/pen/jOjKrqx

Steps to reproduce:

  1. Run the codepen - default filter view: all graphics

    michaelkdev_0-1724664770158.png

     

  2. Select 'highlight graphics' in the top-right widget - filter view: highlight graphics

    michaelkdev_1-1724664807211.png

    label not visible

  3. Switch again

    michaelkdev_2-1724664882602.png

    label graphicB not visible

issue: labels are not visible (when zooming in or out, the labels will be visible again.)

Thanks in advance!

Gr

Michael

0 Kudos
4 Replies
UndralBatsukh
Esri Regular Contributor

Hi there, 

I did scan through your repro case. But lots going on there. This codepen add 2 points to featurecollection and removes/adds Feature B from a button click. I am not able to reproduce your issue with this codepen: https://codepen.io/U_B_U/pen/jOjKwEZ?editors=1000

 

0 Kudos
michaelkdev
New Contributor III

Hi hi Undral!

I changed your codepen a little bit, now all features will be removed with the user action and all features will be added again (toggle like). This functionality should work I assume? Labels are not shown correctly when adding features again.

Thanks! Gr

0 Kudos
michaelkdev
New Contributor III
0 Kudos
UndralBatsukh
Esri Regular Contributor

Hi there, 

I am able to reproduce the issue when all features are deleted and new features are added. I will update you once we have a fix for this. Thanks for reporting this issue.

0 Kudos