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

Venkat Rao Tammineni vtammineni at roulacglobal.com
Tue Dec 16 07:12:29 EST 2008


     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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081216/6145ea00/attachment.html


More information about the mapserver-users mailing list