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