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

Venkat Rao Tammineni vtammineni at roulacglobal.com
Tue Dec 16 04:12:29 PST 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.htm>


More information about the MapServer-users mailing list