CartoDB - Method to show/hide layers for hatching overlap for > 4 layers?

المشرف العام

Administrator
طاقم الإدارة
Our goal is to show/hide individual hatched maps.
Unfortunately we have more than the 4 max layers allowed in a viz. We successfully made and example where we show/hide the 4 layers in a viz:http://maps.massgis.state.ma.us/cartodb_test/cartodb_demo_1_viz_show_hide_animals_chkbox_legend.html

Next, we tried to have an example where we have 2 viz, each with 4 layers and try to show/hide all 8 items on the map. They all draw on the map at first and clear, but then the show/hide doesn't properly work. We tried two methods:

1) Try to put the second viz into a different objects called layers2http://maps.massgis.state.ma.us/cartodb_test/cartodb_2_viz_show_hide_animals_chkbox_method1.html2) Try to put the second viz into the same layers objecthttp://maps.massgis.state.ma.us/cartodb_test/cartodb_2_viz_show_hide_animals_chkbox_method2.html

Is there a way to combine > 1 viz with > 1 layer each and do show/hide. Alternatively, we could have 1 layer per viz and show/hide each viz somehow?



أكثر...
 
أعلى