[mapserver-users] How to Remove Layer

Tamas Szekeres szekerest at gmail.com
Mon Jan 19 03:30:10 EST 2009


Venkat,

I just wanted to mention that this topic have already been discussed with
the same suggestion a month ago, see:
http://n2.nabble.com/Remove-Layer-based-on-layer-Name-C--td1974078.html

However it haven't satisfied with your requirements at that time ;-)

Best regards,

Tamas



2009/1/19 Venkat Rao Tammineni <vtammineni at roulacglobal.com>

> Dear ciao,
>
>  Its working great, Thanks a lot...
>
>  Here is my code....
>
>           layer = Map.getLayerByName("test");
>           Map.removeLayer(layer.index);
>
> Thanks again
>
> Regards,
> Venkat
>
>
> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pietro
> Giannini
> Sent: Friday, January 16, 2009 5:56 PM
> To: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] How to Remove Layer
>
> <?php
> $layerObj = $mapObj->getLayerByName("NameOfTheLayer");
> $mapObj->removeLayer($layerObj->index);
> ?>
> C# is similar.
>
> ciao
> ......................pg
>
>
> --
> Pietro Giannini
> Bytewise srl - Area GIS
> 41°50'38.58"N 12°29'13.39"E
>
>
> On Ven, Gennaio 16, 2009 07:09, Venkat Rao Tammineni wrote:
> > Dear All,
> >
> >
> >
> >   How to remove layer based on not based on index. Is it possible to
> > remove
> > layer based on name.
> >
> >
> >
> > I am waiting for your great response.
> >
> >
> >
> >   Advanced Thanks
> >
> >
> >
> > Regards
> >
> > Venkat.
> >
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090119/498eb803/attachment-0001.html


More information about the mapserver-users mailing list