On Tue, Sep 14, 2010 at 7:07 AM, P Kishor <[email protected]> wrote:
> On Mon, Sep 13, 2010 at 7:32 PM, Eric Lemoine
> <[email protected]> wrote:
>> On Thursday, September 9, 2010, P Kishor <[email protected]> wrote:
>>> I see a note about a patch that enables "groups" in the LayerSwitcher
>>> <http://trac.openlayers.org/ticket/1086>, but no mention of such a
>>> capability in the official docs
>>> <http://dev.openlayers.org/docs/files/OpenLayers/Control/LayerSwitcher-js.html>.
>>>
>>> I would like to bunch layers in two or more groups in the
>>> LayerSwitcher, kinda like so
>>>
>>> Base Layer
>>>   (o) layer 1
>>>   (o) layer 2
>>> Group 1
>>>   [x] layer 3
>>>   [ ] layer 4
>>>   [x] layer 5
>>> Group 2
>>>   [x] layer 6
>>>   [x] layer 7
>>>
>>> Is that possible?
>>>
>>> By the way, why are the docs at
>>> <http://dev.openlayers.org/docs/files/OpenLayers/Control/LayerSwitcher-js.html>
>>> different from the docs at
>>> <http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLayers/Control/LayerSwitcher-js.html>?
>>
>>
>> It isn't supported. So you'll have to create your own LayerSwitcher,
>> possibly based on OpenLayers'. Alternatively, you can look at GeoExt,
>> which privides a LayerTree component with quite advanced capabilities.
>>
>
>
> Thanks Eric. Two questions -- one, is the patch that I mentioned above
> irrelevant  (I haven't really looked into the patch but am only going
> by its description);

The patch is three-year old, and I'm not aware of any ongoing effort
with moving it forward.

> and two, I would like to develop my own
> OpenLayer's based LayerSwitcher for grouping layers as well as for
> being able to select a specific layer to do WMSGetFeatureInfo. Is
> there any tutorial or example,

Not that I know, sorry.

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : [email protected]
http://www.camptocamp.com
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to