[Users] How to remove layers from a tree

Eric Lemoine eric.lemoine at camptocamp.com
Mon Dec 7 17:42:04 CET 2009


On Monday, December 7, 2009, Mario Nuñez Jimenez
<mario.nunez at atosresearch.eu> wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hello,
>
> I am already using layercaontainer.js example to add
> new layers to a GeoExt.tree from my WMS but now I want to seta  button to
> remove/delete th selected layer from the tree but I don’t find any example to
> do this.
>
> Could anyone give me any tip or url where I could
> find an example?

Hi. Removing the layer from the map with map.removeLayer(layer) should
also remove the layer node from the tree.

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com


More information about the Users mailing list