AnsweredAssumed Answered

I need to navigate through stacked elements on a click event.

Question asked by csergent08 Champion on May 5, 2015
Latest reply on May 5, 2015 by csergent08

We have sign supports and street sign layers. Sometimes the layers will be stacked and the elements will be too. What do I need to do to navigate through the layers and the elements of the layer that are located at the exact same location?

 

Here is what I have to evaluate an individual element from the street supports layer:

 var supportId, type, address;
        app.supportLayer.on("click", function (evt) {
            supportId = evt.graphic.attributes.SUPPORTID;
            type = evt.graphic.attributes.TYPE;
            address = evt.graphic.attributes.ADDRESS;
            app.attributesModal.modal("show");
            document.getElementById("address").value = address;
            console.log(supportId);
            console.log(type);
            console.log(address);
        });

 

Here is an editor widget that does the same thing. I had to make a larger form for mobile devices:

signForm1.png

 

signForm2.png

Outcomes