Say I have 9 data layers, A1, A2, A3, B1, B2, B3, C1, C2, C3. I want to have two sections on a ui.Panel with 3 ui.Checkboxes each for the user to select either A, B, C and then 1, 2, 3. Then they hit an "apply" button that runs a function to only display the layer(s) that correspond to the checked boxes. If they check multiple boxes in a section, the app will select and display multiple layers.
I was thinking that you could do it with an ee.Algorithms.if() statement for each ui.Checkbox in the apply function combined with filter() to remove the layers that are not required, but I can't seem to figure out how to use '&' in ee.Algorithms.if().
The other option might be to use some sort of if/else statement that creates a variable and for every option, it adds a string (ex. if the user checks A, then it adds 'A' to the bname, and if they check 1, then it does bname + '1'). However, I also have no idea how I would do this.
If anyone has a hunch, let me know how it could be done!