Could someone explain why off() isn't working below please? I'm trying to understand how it works from the documentation and when I copy the below code nothing happens
layerA = new LayerlayerA.name = "layerA"
clickHandler = (event, layer) -> print "This layer was clicked", layer.name
layerA.on(Events.Click, clickHandler)layerA.off(Events.Click, clickHandler)
With off you are removing the handler, delete the last line and you should get some feedback