Robert and list:<br>
<br>
I think I've got this worked out.  My original cgi-mapserver
application used a hack to get both point and polygon data able to be
filtered based on some extra data in their respective dbf files -
namely site usage (USE1).  As a result I had 3 layers with the
same name as each other.  While the cgi handled this fine, it
appears that php is less forgiving.  I started a .map file over
again for my php application and have renamed the layers and everything
seems to be much happier now.<br>
<br>
Next major task on my list - create an interface to allow the creation of polygons to add to polygon shapefiles - whee!<br>
<br>
Thanks again for your help.<br>
<br>
Regards,<br>
Mike<br><br><div><span class="gmail_quote">On 8/24/05, <b class="gmail_sendername">robert fritz</b> <<a href="mailto:robert-fritz@web.de">robert-fritz@web.de</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<p>Hi Mike,</p><p>If you want to draw some specific layers you can try this ::</p><p>1) Switch off all Layers<br>function setAllLayerOff($MapObject)<br>{ <br>    $layers = $MapObject->getAllLayerNames();  <br> for($a=0;$a<count($layers);$a++)
<br> {<br>     $tmp = $MapObject->getlayerbyname($layers[$a]);<br>     $tmp->set("status",0);<br> }<br>}</p><p>2) Switch on the layers you want to see in your map</p><p>....<br>$layer_on = $MapObject->getlayerbyname($layername);
<br>$layer_on->set("status",1);  </p><p>......</p><p><br>3) Draw the map and save it</p><p>$objImage=$objMap->draw();<br>$image_url=$objImage->saveWebImage(); </p><br><br><table border="0" cellpadding="0" cellspacing="0">
<tbody><tr><td bgcolor="#000000"><img alt="" height="1" width="1"></td></tr><tr><td style="font-family: verdana; font-size: 12px; line-height: 17px;">Mit der Gruppen-SMS von <a href="http://WEB.DE" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
WEB.DE</a> FreeMail können Sie eine SMS an alle    <br>Freunde gleichzeitig schicken: <a href="http://freemail.web.de/features/?mc=021179" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><b>http://freemail.web.de/features/?mc=021179
</b></a>   <br>   <br>  </td></tr></tbody></table>

</blockquote></div><br>