Confirming for posterity that I subsequently tried this again to no
avail. Still getting no symbol drawn on the map, just the
label. I also tried with $currentlayer->set("status",MS_OFF)
and then turning selected layers on with set("status",MS_ON) with no
joy.<br>
<br>
I wonder if there's something to do with my symbol path that is a
problem when using mapscript that doesn't show up when using
cgi-mapserver?<br><br><div><span class="gmail_quote">On 8/24/05, <b class="gmail_sendername">Mike Reilly</b> <<a href="mailto:mikereilly2@gmail.com">mikereilly2@gmail.com</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;">
Robert:<br>
<br>
Thanks for your prompt reply. I'd tried something similar:<br>
<br>
/* for($a=0;$a<count($layers);$a++){<br>
echo $layers[$a];<br>
$currentlayer=$mymap->getLayerByName($layers[$a]);<br>
$currentlayer->status=MS_OFF;<br>
echo $currentlayer->status."<br>";<br>
echo<br>
}<br>
*/ <br><br>
but for some reason I still got all the layers displayed. I'll give it another run and double check tho!<div><span class="e" id="q_105e75f6b39ccee7_1"><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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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>
</span></div></blockquote></div><br>