I am developing an OpenLayers 3 web application were I would like to incorporate more than one Layer Tree alongside my map.
I have this JSFiddle set up that it has a map with multiple layers and one Layer Tree. I would like to duplicate the layer tree multiple times and have a parameter (as per the one in each layer of the example) that then defines which Layer Tree the layer goes into.
I imagine it involves an extra if statement when building the layer tree at the bottom of the code, similar to the slider option already in there, but i don't seem to be able to make it work.
The solution should also ideally remove the "all layers" group at the top of each Layer Tree.
أكثر...
I have this JSFiddle set up that it has a map with multiple layers and one Layer Tree. I would like to duplicate the layer tree multiple times and have a parameter (as per the one in each layer of the example) that then defines which Layer Tree the layer goes into.
I imagine it involves an extra if statement when building the layer tree at the bottom of the code, similar to the slider option already in there, but i don't seem to be able to make it work.
The solution should also ideally remove the "all layers" group at the top of each Layer Tree.
أكثر...