<div dir="ltr">Thanks Marc. I tried as you said but it does not display the node for each layer. I need something like in <a href="http://api.geoext.org/1.1/examples/tree.html" target="_blank" style="font-family:arial,sans-serif;font-size:13px">http://api.geoext.org/1.1/examples/tree.html</a>.<div>
<br></div><div>Thanks,</div><div>Hari</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 18, 2014 at 1:05 AM, Marc Jansen <span dir="ltr"><<a href="mailto:jansen@terrestris.de" target="_blank">jansen@terrestris.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>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 href="http://demo.opengeo.org/geoserver/wms" target="_blank">"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<div><div class="h5"><br>
<br>
<br>
On 17.06.2014 20:17, Hari Pradhan wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hello list,
<div><br>
</div>
<div>I want to group layers using GeoExt2 as in the link "<a href="http://api.geoext.org/1.1/examples/tree.html" target="_blank">http://api.geoext.org/1.1/examples/tree.html</a>"
where tasmania layers are grouped together. The link "<a href="http://geoext.github.io/geoext2/examples/tree/tree.html" target="_blank">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></fieldset>
<br>
</div></div><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@geoext.org" target="_blank">Users@geoext.org</a>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<pre cols="72">--
Dipl.-Geogr. Marc Jansen
— Anwendungsentwickler —
terrestris GmbH & Co. KG
Pützchens Chaussee 56
53227 Bonn
Tel: <a href="tel:%2B49%20%280%29228%20%2F%2096%2028%2099%20-53" value="+4922896289953" target="_blank">+49 (0)228 / 96 28 99 -53</a>
Fax: <a href="tel:%2B49%20%280%29228%20%2F%2096%2028%2099%20-57" value="+4922896289957" target="_blank">+49 (0)228 / 96 28 99 -57</a>
Email: <a href="mailto:jansen@terrestris.de" target="_blank">jansen@terrestris.de</a>
Web: <a href="http://www.terrestris.de" target="_blank">http://www.terrestris.de</a>
Amtsgericht Bonn, HRA 6835, Komplementärin: terrestris Verwaltungs-
gesellschaft mbH, vertreten durch: Hinrich Paulsen, Till Adams
</pre>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@geoext.org">Users@geoext.org</a><br>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>