Select to view content in your preferred language

Creating an attribute window

138
0
07-10-2024 03:42 AM
emreaktas1
Regular Contributor

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

emreaktas1_0-1720608144838.png

 

 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
    }
  })
 })
0 Replies