Hello,
I am trying to point to an img src that is a string/path on a FeatureLayer, but it always comes through as a broken image. Can anyone point me to how to get this to work? I think I must bypass the popup template class or something to this effect. Here is my code snippet:
const featureLayer = new FeatureLayer({
url: "https://services.arcgis.com/eoP5lsTDzcIUyaQZ/arcgis/rest/services/.../FeatureServer",
popupTemplate: {
title: "{Name}", // Field from the feature attributes
content: `
<b>Image Path:</b> {ImagePath}<br>
<a href="{ImagePath}" target="_blank">URL</a>
<img src="{ImagePath}">
`
}
})