How do I remove overlay on a control?

I am using this to set overlay on a control.

controls.get(1):getValue():setOverlayId(1)

How do I remove overlay on a control?

I have tried this.

controls.get(1):getValue():setOverlayId(-1)

It works and gives no error but is it the right way?

At this moment the only way is to assign an empty overlay. I am taking a note that removing an overlay assignment would be handy.

1 Like

Thanks Martin.