✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Keep Toggle View through Slider Steps

I have a 3-D model that has many layers that I toggle on and off from the legends view. There is also a slider to view different groupings of the model layers. The views in each of these slider steps in predetermined in the code, but i want to have the next step keep what ever the previous step view had. Ex in the pictures below:

The first view in “Step 1” of the slider has the “7-1” layer toggled on in the view, but the default is for it to be off, which i want. Then when i go to “Step 2” the “7-1” goes back to off. How do i keep it on?