AnsweredAssumed Answered

graphicslayer onclick

Question asked by rugnirtheviking on Jul 25, 2018
Latest reply on Jul 26, 2018 by rscheitlin

I want to make an event fire upon clicking a GraphicsLayer. I have tried to get this to work with the following code:

var symbolsLayer = new GraphicsLayer();


symbolsLayer.on("click", function (event) {
    // event is the event handle returned after the event fires.

The event is never fired - but there is no error in the console. What is the correct way to do this?