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.