<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4616.200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#c0c0c0>
<DIV><FONT face=Arial size=2>Hi, I am running mapserver 3.5(night build), with 
PHP/Mapscript. </FONT></DIV>
<DIV><FONT face=Arial size=2>I was wondering how to turn a layer on, before it 
gets displayed to my browser.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have 3 layers in my map file.&nbsp;Layers 0 
and&nbsp;2 have "status on"&nbsp; Layer 1 has "status off".</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Here is what I am trying...</FONT></DIV>
<DIV><FONT face=Arial size=2>I am turning the status of my 2nd layer to "on" but 
it still doesnt show up.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>$mapObj = 
ms_newMapObj("$dataPath/$map.map");<BR>$layerObj = 
$mapObj-&gt;getLayer(1);<BR>$layerObj-&gt;status=1;<BR></FONT><FONT face=Arial 
size=2></FONT></DIV>
<DIV><FONT face=Arial size=2>header("Cache-Control: no-cache, 
must-revalidate");<BR>header("Pragma: no-cache");<BR>header("content-type: 
image/jpeg");<BR>$img-&gt;saveImage("",MS_JPEG,0,0, 80);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>thanks!!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>-jim</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;</DIV></FONT></BODY></HTML>