<?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
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to