Popup no longer appears in 4.7

646
3
04-20-2018 06:59 AM
CyrusBlankinship1
New Contributor III

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;        
3 Replies
mingleidi
New Contributor II

I'm having this same problem, can anyone help? It's a breaking issue, caused by new 4.7 css

Thanks,

0 Kudos
mingleidi
New Contributor II

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.

0 Kudos
RalucaNicola1
Esri Contributor

Can you share a snippet to repro? 

Popup shows in this sample: Add edges to a SceneLayer | ArcGIS API for JavaScript 4.7