Javascript Layer Tree Collapse With OpenLayers3

المشرف العام

Administrator
طاقم الإدارة
I have the following JSFiddle that includes a layer tree for my OpenLayers3 layers.

It is currently set up so that when you click on the branch 'parent', the layers collapse. I'm looking to make it so that on the page load the "Cities" and Background Mapping" 'parents' are collapsed and the user can choose which branch they expand.

Preferably I wouldn't like it to collapse all the way up to "All Layers".



أكثر...
 
أعلى