[Users] Grouping layers in GeoExt2
Hari Pradhan
starling.lucky at gmail.com
Wed Jun 18 15:39:40 CEST 2014
Thanks Marc. I tried as you said but it does not display the node for each
layer. I need something like in http://api.geoext.org/1.1/examples/tree.html
.
Thanks,
Hari
On Wed, Jun 18, 2014 at 1:05 AM, Marc Jansen <jansen at terrestris.de> wrote:
> Hi Hari,
>
> AFAICT the same thing should still be possible.
>
> Have you tried adding a layer with multiple layers?
>
> new OpenLayers.Layer.WMS("Tasmania (Group Layer)",
> "http://demo.opengeo.org/geoserver/wms" <http://demo.opengeo.org/geoserver/wms>, {
> 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
> }
> )
>
> What happens without specifying anything special?
>
> Best,
> Marc
>
>
>
> On 17.06.2014 20:17, Hari Pradhan wrote:
>
> Hello list,
>
> I want to group layers using GeoExt2 as in the link "
> http://api.geoext.org/1.1/examples/tree.html" where tasmania layers are
> grouped together. The link "
> http://geoext.github.io/geoext2/examples/tree/tree.html" 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.
>
> Can anyone provide me some code snippets for grouping the layers using
> GeoExt2?
>
> Thanks,
> Hari
>
>
> _______________________________________________
> Users mailing listUsers at geoext.orghttp://www.geoext.org/cgi-bin/mailman/listinfo/users
>
>
>
> --
>
> 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: jansen at terrestris.de
> Web: http://www.terrestris.de
>
> Amtsgericht Bonn, HRA 6835, Komplementärin: terrestris Verwaltungs-
> gesellschaft mbH, vertreten durch: Hinrich Paulsen, Till Adams
>
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20140618/e8f8b9a3/attachment.htm
More information about the Users
mailing list