Hello,
I have created an app with this code:
view.when(function() {
view.popup.watch("selectedFeature", function(selectedFeature) {
if(selectedFeature) {
selectedFeature.popupTemplate = {
title: "custom title",
content: "custom content"
};
console.log(selectedFeature.popupTemplate.title);
console.log(selectedFeature.popupTemplate.content);
}
});
It works fine in ArcGIS JS API 4.16. When feature is selected, then popup is open with required title and content.
In 4.17 and also 4.18 it is problem. popupTemplate is set correctly, but popup is open with default content like this:
Where is the issue with this concept in new versions ArcGIS JS API?
Thanks
Kamil