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