How to "unsetPreferredLayers"?

Is it possible to unset preferred layers? Basically reset it to default, to how it was before setting it?
Thanks!

So assuming you have at most 3 layers, set spatial to 2 or higher and omit temporal and you’ll get the default behavior.

Thanks!
Just to double check. Default behavior is: spatial is next after the best one and no temporal at all, right?

Layers are indexed from 0, so for 3 layers, there will be layers 0, 1 and 2.
You can set temporal to max layer too or you can skip it, as you wish.

Wait a sec, so you mean that default behavior is to set spatial layer to the best one, right?

Yes, if you think about it, why would it be anything else? :slightly_smiling_face:

1 Like

I guess you are right, I just did not think about it