defaultPopupTemplateEnabled not working with FeatureLayer added by url

1056
2
Jump to solution
05-05-2021 02:31 AM
ChristopheSuter
New Contributor III

Hi,

When adding a FeatureLayer with its url, defaultPopupTemplate is not working while it is working when adding it with its portalItem id.

Sample code not working:

https://codepen.io/christophesuter/pen/QWpLPpz

Sample code working:

https://codepen.io/christophesuter/pen/jOBNRmJ

Is this a normal behaviour ?

Thanks for your help

0 Kudos
1 Solution

Accepted Solutions
IGNPERU
New Contributor

Try to add:

view.popup.defaultPopupTemplateEnabled = true;

View solution in original post

2 Replies
IGNPERU
New Contributor

Try to add:

view.popup.defaultPopupTemplateEnabled = true;

ChristopheSuter
New Contributor III

Ok, thanks that works !

0 Kudos