I'm having trouble setting a popup template for a feature layer. Based on the documentation I expected to be able define a PopupTemplate object, define the fieldInfos property and leave the content property null resulting in the popup displaying the fieldInfos as a table as documented here:
- fields - Array of fieldInfos objects. If
fieldInfosis not set directly within the
contentproperty, the popup will display whatever is set in the PopupTemplate.fieldInfos property. This must be defined using the fields popup element specification table.
However, when I do this, the popup appears blanks:
I have to manually set the content property as follows to get the populate:
Am I doing something wrong or is the documentation incorrect?