Hi,
How about doing this?
layer = MapFunction.Map.getLayerByName("PointLayer");
MapFunction.Map.removeLayer(layer.index);
Best regards,
Tamas
2008/12/16 Venkat Rao Tammineni <[email protected]>
> 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
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users