[OpenLayers-Users] Make hierarchical layers using WMS

Eric Lemoine eric.c2c at gmail.com
Thu Jul 24 11:33:18 EDT 2008


On Thu, Jul 24, 2008 at 3:58 PM, S.Reena <reena at indiamail.com> wrote:
>
> I am using WMS request to make layers ..Now I want to make it hierarchical as
> a tree.....so that after selecting one layer..the sub layers should
> appear...where he can select or unselect......
>
> Can Anyone help in this...

Hi

OpenLayers layer switcher does not support that.

MapFish, which based on OpenLayers and Ext, does provide that. See
<http://demo.mapfish.org/mapfishsample/trunk/examples/tree/tree_automatic.html>
for an example (un-compressed js) and
<http://demo.mapfish.org/mapfishsample/trunk/demos/c2corg/search.html>
for a more complete demo. In the demo there's only one sub-layer, but
you get the idea.

Cheers,
--
Eric



More information about the Users mailing list