<div>Hello all, i am trying to add 2 raster layers dynamically from my php-mapscript. The problem i am facing is these rasters layers are displayed on top of the other vector layers which are in the mapfile, but when i add these raster layers in the mapfile they display correctly, i am not sure if i am doing anything wrong, this is my mapscript </div>  <div>&nbsp;</div>  <div>&nbsp;</div>  <div>$rasterlayer = ms_newLayerObj($map);<BR>$rasterlayer-&gt;set(name,raster1);<BR>$rasterlayer-&gt;set(type,MS_LAYER_RASTER);<BR>$rasterlayer-&gt;set(status,MS_ON);</div>  <div>$rasterlayer-&gt;set(data,"somepath");</div>  <div>$rasterlayer = ms_newLayerObj($map);<BR>$rasterlayer-&gt;set("name","raster3");<BR>$rasterlayer-&gt;set("type",MS_LAYER_RASTER);<BR>$rasterlayer-&gt;set("status",MS_ON);</div>  <div>$rasterlayer-&gt;set(data,"somepath");</div>  <div>&nbsp;</div>  <div>//all the vector layers are displayed after this with their properties set</div>  <div>&nbsp;</div>  <div>one
 more problem i have with this is, i have to create a layer object twice, i give the same name or a different doesnt matter but if i dont create the layer object again it throws an error saying the first raster layer(raster1 in my case) failed to draw ..</div>  <div>&nbsp;</div>  <div>Thanks for your time ....</div>  <div>--kris</div><p>
                <hr size=1>How low will we go? Check out Yahoo! Messenger’s low <a href="http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com"> PC-to-Phone call rates.