Adding popupTemplate on graphic in the sketch widget graphic layer fails at 4.21

158
4
11-26-2021 01:01 AM
ChristopheSuter
New Contributor III

Hi,

PopupTemplate fails on the sketchWidget graphicsLayer at 4.21 here is a code sample (draw a rectangle with the rectangle tool to show popup)

4.21 (fails):

https://codepen.io/christophesuter/pen/QWMeqmo?editors=1000

4.20 (works):

https://codepen.io/christophesuter/pen/VwzoMGM?editors=100

Am I doing something wrong ? Anyone had the same problem ?

Tags (1)
0 Kudos
4 Replies
JeffreyWilkerson
Occasional Contributor II

Sorry, I've tried to get a workaround but this should be working.  In the error is the message "Instance of 'esri.layers.GraphicsLayer' is already destroyed", but I can't figure out why that would be happening.  I'm thinking you should open a ticket with Esri on this one as it looks like a bug to me. 

HeatherGonzago
Esri Contributor

Hi @ChristopheSuter I'm taking a look at this and will get back to you shortly.

 

Thanks,

Heather

ChristopheSuter
New Contributor III

Hi Heather,

Meanwhile I had this BUG assignment: BUG-000144839 - PopupTemplate fails on the sketchWidget graphicsLayer

Best,

Christophe

0 Kudos
YesidLeonardoLopezSierra
New Contributor

Hey, there is any update on this? I made it works but I had to delete the graphic from the graphics layer and add it again but by creating a whole new polygon..

0 Kudos