Can you adjust the pop up template in arcGIS online?

2068
2
06-17-2019 10:55 AM
FrancineStringer
New Contributor

Is there a way to edit the size of a pop up window in ArcGIS online for a webmap? (Or otherwise edit the pop up template)

Tags (1)
0 Kudos
2 Replies
LanceCole
MVP Regular Contributor

Francine,

If I understand your question correctly and you were in reference to an ArcGIS Online map you have published, yes.   The pop ups are substantially configurable and even support some HTML and Arcade code.  Although size is not directly controllable you can modify the content which indirectly affects the size.  Take a look at:

Configure pop-ups—ArcGIS Online Help | ArcGIS 

Supported HTML—ArcGIS Online Help | ArcGIS 

Combining Arcade and HTML for a Real-life Pop-up Display 

DavidWilson3
Occasional Contributor

You can customize the Esri popup size through its CSS property's. Simply use the following code in your <style></style> and change whatever you wish to your liking and add or remove different CSS properties:

.esri-popup__main-container {
   max-height: ?px
   min-height: ?px
   max-width: ?px
   min-width: ?px

}
I also recommend this link if you are unsure about the CSS properties of the Esri popup widget: https://github.com/Esri/arcgis-js-api/blob/4master/themes/base/widgets/_Popup.scss