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) {
console.log(event.mapPoint);
debugger;
});
The event is never fired - but there is no error in the console. What is the correct way to do this?