AnsweredAssumed Answered

Dynamically add image content to the popuptemplate of feature layer

Question asked by shakyasingh on Aug 7, 2019
Latest reply on Aug 10, 2019 by rscheitlin

popupTemplate: {
title: "testImage",

content:[
{
type: "media",
mediaInfos: [
{
title: "<b>Test</b>",
type: "image",
caption: "test1",
value: {
sourceURL:"images/image1.JPG"
}
} ,
{
title: "<b>Test</b>",
caption: "test2",
value: {
sourceURL:"images/image1.JPG"
}
}
]
}]

}

 

 

After clicking on the layer ,I am geting the objectid , through the objectid I want to get the images dynamically stored in  folders having named with the  "id" . 

 

How can I get the images per each id dynamically

Outcomes