Select to view content in your preferred language

popup style from sceneview editor

826
3
04-27-2021 07:14 PM
rcwisc
by
Emerging Contributor

Is it possible to get the popup style from the sceneview editor? I much prefer this to the standard popup. This seems only available in the sceneview editor or is it available somewhere else? Attached is a screenshot of what I am referring to. Thanks! 

 

 

0 Kudos
3 Replies
KristianEkenes
Esri Regular Contributor

This is the default popup style in the 4x versions of the JS API. By "standard popup" do you mean the popup in the class map viewer (3x JS API)? 

If you want to take advantage of this in webmaps you can use it in any JS API 4x app, or in the map viewer beta.

0 Kudos
rcwisc
by
Emerging Contributor

Hello @KristianEkenes 

I am using version 4.18 but my popup  does not look like the picture I posted in the example. Mainly what I am looking for is to have a single large popup action button on the bottom of my popup like in the sceneview popup picture I posted where the 'zoom to' action is a large green button. My popup has small action icons I have attached a screenshot. What am I doing wrong?

rcwisc_0-1619808739240.png

 

0 Kudos
RalucaNicola1
Esri Contributor

Hey,

there is no out of the box style similar with the SceneViewer one, you'll have to do all the styling yourself.

Here is some basic css that the sceneviewer also uses, to get you started: https://codepen.io/ralucanicola/pen/poRMagR?editors=1000 

This UI style guide might also be helpful to figure out how to style widgets: https://developers.arcgis.com/javascript/latest/styling/ 

0 Kudos