[mapserver-users] Dynamic Layers PHP/Mapscript
Assefa Yewondwossen
assefa at dmsolutions.ca
Wed Aug 15 06:59:07 PDT 2001
Hi there,
You should use something like this :
....
$layerObj = $mapObj->getLayer(1);
$layerObj->set("status", 1);
....
Bye,
Jim Burnett wrote:
> Hi, I am running mapserver 3.5(night build), with PHP/Mapscript.I was
> wondering how to turn a layer on, before it gets displayed to my
> browser. I have 3 layers in my map file. Layers 0 and 2 have "status
> on" Layer 1 has "status off". Here is what I am trying...I am turning
> the status of my 2nd layer to "on" but it still doesnt show
> up. $mapObj = ms_newMapObj("$dataPath/$map.map");
> $layerObj = $mapObj->getLayer(1);
> $layerObj->status=1;header("Cache-Control: no-cache,
> must-revalidate");
> header("Pragma: no-cache");
> header("content-type: image/jpeg");
> $img->saveImage("",MS_JPEG,0,0, 80); thanks!! -jim
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056
----------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20010815/6276a58d/attachment.htm>
More information about the MapServer-users
mailing list