[mapserver-users] Remove Layer based on layer Name C#

Tamas Szekeres szekerest at gmail.com
Tue Dec 16 08:32:45 PST 2008


Hi,

How about doing this?

layer = MapFunction.Map.getLayerByName("PointLayer");

MapFunction.Map.removeLayer(layer.index);


Best regards,

Tamas



2008/12/16 Venkat Rao Tammineni <vtammineni at roulacglobal.com>

>       Dear All,
>
>
>
>                 I want remove layer based on Layer Name.Now I Can able to
> remove layer based on index.Is it possible to do.
>
>
>
> layer = MapFunction.Map.getLayerByName("PointLayer");
>
>
>
>             MapFunction.Map.removeLayer(0);
>
>
>
> Thanks
>
> Venkat.
>
> _______________________________________________
> 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/20081216/418474f9/attachment.htm>


More information about the MapServer-users mailing list