Dear All,
In my application popup title displays first field value, instead I need to display layer title (refer attached snapshot).
I have use popup.open as shown below. "dict" refers collection of features selected in the map.
view.popup.open({ features: dict, featureMenuOpen: false, updateLocationEnabled: true ,highlightEnabled :true , collapseEnabled :false,includeDefaultActions : true });
Please help me to resolve this issue. Please note I didn't use popuptemplate
You can create a PopupTemplate for each layer and set the title to the layer name that way. Then create a Popup and set the title and content properties to the attributes of this template object.