Hello esri community;
I want to create an attribute window where I click on the layers as seen in the picture.
I want to fill the content as I want, like a pop-up template.
I found this as an example on this topic, but it didn't work.
// sample js cod

view.on("click" , (event) => {
view.hitTest(event).then((response) => {
let layerCount
layerCount = response.result.length;
for(var i = 0; i < layerCount; i++){
var layername = response.result[i].layer.title
}
})
})