<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Hari,<br>
<br>
AFAICT the same thing should still be possible.<br>
<br>
Have you tried adding a layer with multiple layers?<br>
<pre> new OpenLayers.Layer.WMS("Tasmania (Group Layer)",
<a class="moz-txt-link-rfc2396E" href="http://demo.opengeo.org/geoserver/wms">"http://demo.opengeo.org/geoserver/wms"</a>, {
layers: [
"topp:tasmania_state_boundaries",
"topp:tasmania_water_bodies",
"topp:tasmania_cities",
"topp:tasmania_roads"
],
transparent: true,
format: "image/gif"
}, {
isBaseLayer: false,
buffer: 0,
visibility: false
}
)
</pre>
What happens without specifying anything special?<br>
<br>
Best,<br>
Marc<br>
<br>
<br>
On 17.06.2014 20:17, Hari Pradhan wrote:<br>
</div>
<blockquote
cite="mid:CA+QVMSywjBT2G7AH5xsGEcZt=g6MTt-N=KXOUF=zoP3B8iwsyw@mail.gmail.com"
type="cite">
<div dir="ltr">Hello list,
<div><br>
</div>
<div>I want to group layers using GeoExt2 as in the link "<a
moz-do-not-send="true"
href="http://api.geoext.org/1.1/examples/tree.html">http://api.geoext.org/1.1/examples/tree.html</a>"
where tasmania layers are grouped together. The link "<a
moz-do-not-send="true"
href="http://geoext.github.io/geoext2/examples/tree/tree.html">http://geoext.github.io/geoext2/examples/tree/tree.html</a>"
provides an example of this kind of layer tree and is similar
to that of v1.1. But it does not implement grouping the
layers.</div>
<div><br>
</div>
<div>Can anyone provide me some code snippets for grouping the
layers using GeoExt2?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Hari</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org">Users@geoext.org</a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Dipl.-Geogr. Marc Jansen
— Anwendungsentwickler —
terrestris GmbH & Co. KG
Pützchens Chaussee 56
53227 Bonn
Tel: +49 (0)228 / 96 28 99 -53
Fax: +49 (0)228 / 96 28 99 -57
Email: <a class="moz-txt-link-abbreviated" href="mailto:jansen@terrestris.de">jansen@terrestris.de</a>
Web: <a class="moz-txt-link-freetext" href="http://www.terrestris.de">http://www.terrestris.de</a>
Amtsgericht Bonn, HRA 6835, Komplementärin: terrestris Verwaltungs-
gesellschaft mbH, vertreten durch: Hinrich Paulsen, Till Adams
</pre>
</body>
</html>