wokring off of the Feature Widget sample.
I was trying to do the same thing with a diffrent layer, Polygon or otherwise.
the code dosent work when any other layer is used and I am not sure what is the diffreance between them.
code with a diffrent layer:
https://codepen.io/segev-salman/pen/JqmrWw?editors=1000
code with original layer:
https://codepen.io/segev-salman/pen/GawqoN?&editable=true&editors=100
The widget responds to the mouse movement and hit test but the popup template doesn't update
I am not sure where to add the template and why the original code doesn't require one. does it come with the layer itself?