I am working with ArcGIS Developer to modify the position and content of the popup.
Would it be possible to change the default template into something custom? Since I'd rather change this internally from the code than changing the popup Arcade code for every layer I have.
Another question is whether I could dock the popup to a section or something like that. The 'bottom-left' and other options would not satisfy this since I need it to be in a specific location within the portal.
To solve these, would it instead be possible to intercept the popup click, read which layers and open a custom version instead?
I have found the following popup code within the widget arcgis-map/runtime/components/mapbase.tsx:
mapViewOption.popup = {
defaultPopupTemplateEnabled: true,
// Not changing since overwritten by popupTemplate ?
title: "Results title",
content: 'test',
// ADDED
// dockOptions: {
// position: 'bottom-left',
// }
}
The best is to edit a smart popup in your web-map itself.
Edit , use hyperlinks, or even image <img>
Click that "source" button and save it in plain text (good old notepad)
Save your web-map
Back in Experience Builder, add a "Feature Info" widget and place it (say) in a side panel
Try with the simplest web map and simplest ExB test project , first.
Thank you for this Frederic. I have tried this, nearly successfully.
However when I first open the Experience, the Feature Info box that I have now created to replace the popup, starts by showing the first of all the records in the entire table as a default view:
When I select an individual record it does correctly display the pop up for that address, but I need it to be blank before any records are selected.
Have I missed a simple setting somewhere?
I am using Experience Builder on AGOL.
Thanks.