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 (4) 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.

  • You can create manually layer list an arbitrary number of layers without the use of layer switcher. – Samane Aug 15 '15 at 7:28
  • Thanks @Samane, but would it be possible to do it the way outlined in the question? – Joshua Dickerson Aug 15 '15 at 9:45

Be implemented with Java and layer tree node and primeFaces component.

This is my layer list

  • This answer points to nowhere. What this has to do with Openlayers? – Jonatas Walker Aug 15 '15 at 10:59
  • I did wonder the same @JonatasWalker, very misleading. – Joshua Dickerson Aug 15 '15 at 14:54
  • @JonatasWalker I just wanted to say that we can implement it manually and then using openLayers to display layers, Using attributes visibility. Its the same OpenLayers! – Samane Aug 16 '15 at 4:08
  • @JoshuaDickerson Do not want you to have a few layers list? – Samane Aug 16 '15 at 4:10
  • @Samane yes i do – Joshua Dickerson Aug 27 '15 at 8:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.