Can someone explain the meaning of layer.idx?
I've seen it used a couple of times, but can't find anything in the documentation about it. Is it a shorthand for indexOf? When would you use it?
its just variable in layer object, so u can talk to this property later on, for example getting index of the clicked layer
Yeah someone is just setting this themselves.
You could do rect.whateverYouWant = "true"
Just the same way.
Thanks guys, didn't know you can set variables directly to the layer this way.
Careful though... I'd recommend storing them inside layer.custom.yourPropertyHere