I'm upgrading an app from 4.5 to 4.7 but the popups no longer appear for their associated scene layer. Have there been any changes around assigning the PopupTemplate? Sample code has been shortened for clarity
template = new PopupTemplate({
content: setContentInfo
});
function setContentInfo(feature){
var html = '<div class="cbre-popup">' +
'<h2>' + feature.graphic.attributes.Tenant_Name + '</h2>' +
'</div>';
return html;
}
sceneLayer.popupTemplate = template;
I'm having this same problem, can anyone help? It's a breaking issue, caused by new 4.7 css
Thanks,
I found out the root cause, I have this style in my class:
.esri-ui {
position: relative;
}
after remove it, popup is showing. Hopefully it helps.
Can you share a snippet to repro?
Popup shows in this sample: Add edges to a SceneLayer | ArcGIS API for JavaScript 4.7