Ok,
I sent you the code, you can reach the most changes by looking into the loadContents, toggleExtraOptions function, when you search for "active" in the file you will find the active layer code. I hope some german user massages and a little jQuery don't confuse you. I think the easiest way to implement the groups is like the grouping of overlays and baselayers. My former post was a little long due to the code so I let him out now. If someone else interested tell me so I send it directly.
Regards
Slawomir
Am 14.09.2010 07:59, schrieb P Kishor:
On Tue, Sep 14, 2010 at 7:51 AM, Slawomir Messner
<[email protected]>  wrote:
  Hi,
I can post later our modification of the LayerSwitcher where we have some
extra actions. Extra actions are visiblity change, opacity, adding a new
vector layer, copy a vector layer, mark a layer to be "active" it's working
but not reviewed;) There is no grouping but you sure has your own grouping
algorithm.
Tell me when you interested.

Of course I am very interested. Please send your changes to me, or
post them somewhere I can take a look at them.

I was able to solve things like opacity/color, etc., with minimal CSS
tinkering, but I need to explore more changes such as select a
specific layer for "active," move layers up and down, and, most
important -- grouping (I have a bunch of "input" layers and "output"
layers, stuff that goes into a model and stuff that comes out of a
model, and would like to group them accordingly, and turn entire
groups on and off).

Many thanks, and looking forward to your patch.

Regards,
Slawomir

Am 14.09.2010 07:07, schrieb P Kishor:
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); 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, or has someone else done something like
this that I can learn from?

For various reasons, using GeoExt is not possible for me.


Good luck. Cheers,

--
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




_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to