Select to view content in your preferred language

Set the Image Size in a Popup

505
4
Wednesday
RTC
by
Regular Contributor

Hi, I'm looking for a way to control the image size that is displayed within a Popup using Esri 200.8.

Currently the image looks like it is getting rounded corners and the image itself is being cropped off. Can this be configured in AGOL?

Thanks!

 

0 Kudos
4 Replies
Leena_Abdulqader
Frequent Contributor

 

Hi @RTC, AGOL automatically resizes the image to fit the pop-up's layout. To optimize display, I think it is recommended to use images with a width around 400 px; anything less may show borders; anything significantly wider might be auto-rescaled and appear distorted. The ideal aspect ratio for a panel pop-up is typically 4:3 (e.g., 600×450 px). Unfortunately, rounded corners or cropping are dictated by the default theme and cannot be disabled or adjusted via the UI. 

Check this  https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/configure-pop-ups-tips-photos?utm_so...

Someone said he used Arcade, but I've never tried that https://community.esri.com/t5/arcgis-online-questions/resizing-images-in-arcgis-map-viewer-pop-ups/t...

I hope this helps.

 

RTC
by
Regular Contributor

Thanks for the reply Leena! I am looking into the option of Arcade but it's not ideal, was hoping there was something in the SDK.

Thanks!

DavidFeinzimer
Esri Contributor

Hi @RTC, thank you for reaching out. This isn't a customization currently supported at either the AGOL or SDK/toolkit level. The static size and rounded corners with cropping are as-designed. In the short term, the quickest resolution would be to fork the toolkit and customize the component as desired. Long term, if you're looking for more control over element appearance across different platforms at the authoring level, I would encourage you to file this as an idea in the ArcGIS Maps SDKs Native Ideas board.

 

David

RTC
by
Regular Contributor

Thanks David for confirming that is it not customizable.

0 Kudos