Select to view content in your preferred language

Arcgis Esri js sdk pop-up problem

113
2
Jump to solution
Tuesday
shinte
by
New Contributor

Hello All,

 

Recently, I updated the frontend packages from version 4.28 to 4.32, and I am experiencing an issue with pop-ups.

 

To summarize, the pop-ups are not displaying correctly, and the actions are not being rendered. In the HTML source, the pop-up actions are there, and the view.popup.actions.items are present, but when displayed to the screen, website, nothing appears.

 

How it should be: (old version 4.28) — outlined in red, showing the buttons.

https://ibb.co/Kcct9Dp0

How is it now 4.32(no action buttons are displayed)

https://ibb.co/TBm7Qv5z

The pop-up is called with view.popup (view: SceneView) using:

new Popup({
  ...,
  actions: [action1, action2]
}); where actions are ActionButtons.

 

I have also tried using PopupTemplate with a new FeatureLayer, but the same behavior occurs.

The code is the same, and I’ve tried different approaches to resolve the issue, but to no avail. 😞

 

Any help would be greatly appreciated.

Thanks!

0 Kudos
1 Solution

Accepted Solutions
JamesIng
Frequent Contributor

It should work with a popupTemplate with actions.

If you copy and paste from this example does it work?
https://developers.arcgis.com/javascript/latest/sample-code/popup-actions/

James from www.landkind.com

View solution in original post

0 Kudos
2 Replies
JamesIng
Frequent Contributor

It should work with a popupTemplate with actions.

If you copy and paste from this example does it work?
https://developers.arcgis.com/javascript/latest/sample-code/popup-actions/

James from www.landkind.com
0 Kudos
shinte
by
New Contributor

Well, found the issue, by trying your suggestion, so 

I just needed to update index.html css 

   <link
      rel="stylesheet"
      href="https://js.arcgis.com/4.32/esri/themes/light/main.css"
    />
    

 Well it was a conflict of css what was needed to be updated

0 Kudos