Hi,<br><br>How about doing this?<br><br><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(79, 129, 189);">layer
= MapFunction.Map.getLayerByName(&quot;PointLayer&quot;);</span><br><br><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(79, 129, 189);">MapFunction.Map.removeLayer(layer.index);</span><br><br>
<br>Best regards,<br><br>Tamas<br><br><br><br><div class="gmail_quote">2008/12/16 Venkat Rao Tammineni <span dir="ltr">&lt;<a href="mailto:vtammineni@roulacglobal.com">vtammineni@roulacglobal.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><span style="color: rgb(79, 129, 189);">&nbsp;&nbsp;&nbsp; &nbsp;Dear
All,</span></p>

<p><span style="color: rgb(79, 129, 189);">&nbsp;</span></p>

<p><span style="color: rgb(79, 129, 189);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;I want remove layer based on Layer Name.Now I Can able to remove layer
based on index.Is it possible to do.</span></p>

<p><span style="color: rgb(79, 129, 189);">&nbsp;</span></p>

<p style="margin-left: 0.5in; text-indent: 0.5in;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(79, 129, 189);">layer
= MapFunction.Map.getLayerByName(&quot;PointLayer&quot;);</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(79, 129, 189);">&nbsp;</span></p>

<p><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(79, 129, 189);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
MapFunction.Map.removeLayer(0);</span></p>

<p><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(79, 129, 189);">&nbsp;</span></p>

<p><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(79, 129, 189);">Thanks</span></p>

<p><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(79, 129, 189);">Venkat.</span><span style="color: rgb(79, 129, 189);"></span></p>

</div>

</div>


<br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br>