Hello guys, I don't understand why the first block of code hides the layer but the second doesn't. Any tips? Thanks
TLDR; change your handlers to:
layer.on Events.Click, (event, layer) ->
Koen Bok thanks for your quick response, I just tried this and still does not work
Allmost, let me make you an example.
Trythis.animate > layer.animate
Koen Bok thanks! that worked! but it is wierd that only works if I put the "allLayers = " at the bottom but i already have it declared on the top of the document