Skip to main content

Hi folks,

 

I’m trying to create a prototype which allows me to toggle a layer visibility on and off using a ‘Hide’ checkbox which sets a boolean variable (applied to Blue box layer appearance ). In the file, I can hide the blue box when checkbox toggled on, but I cannot show the blue box when toggled off. 

Here is prototype: Show hide layer

 

Am I missing something really simple here? 

 

Any advice appreciated…

 

 

Hi there,

It looks like the issue might be that the second variant of the component (e.g., "Selected") doesn’t have the prototype interaction linked properly. Even though you're toggling the boolean variable, if the layer visibility isn’t tied to the variable on that second variant, the blue box won’t show again as expected.

Hope this helps point you in the right direction!


Thanks for your explanation ​@Ondrej_Pavlicek. Problem solved.

One small but important detail to highlight, is that the interaction must be assigned to the component, and not the instance of the component. 

Thanks again! 😎


Reply