Landscape patches edit visibility

Hello,

I noticed there is an flag “Edit Visibility” on the landscape patch component. It doesn’t seem to have any effect on the landscape visibility though.

I also found this function:

I tried to set this in const script on the landscape patch component, that also has no result in editing the landscape visibility. Also I’m a bit confused on what input should I add to the In Weightmap Layer Name.

Any hint on how to edit landscape visibility with patches?