[Mapserver-users] raster layer not turning off
Jim Burnett
r000t at adelphia.net
Tue Feb 25 09:29:32 PST 2003
This is a multi-part message in MIME format.
------=_NextPart_000_028E_01C2DCC9.8CCD09A0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
For some reason my raster index lasyer will not turn off. It always =
stays on UNLESS I use php to turn it off like this. If I take this code =
out, it turns on...?? I checked my code and this is the only spot I do =
anything with the layer statuses.
$layerObj =3D $mapObj->getLayer(0);
$layerObj->set("status",0);
LAYER
NAME "Aerial Overlay"
STATUS OFF
TILEINDEX "aerial.shp"
TILEITEM "location"
TYPE RASTER
MAXSCALE 10000
END
------=_NextPart_000_028E_01C2DCC9.8CCD09A0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>For some reason my raster index lasyer =
will not=20
turn off. It always stays on UNLESS I use php to turn it off like =
this. If=20
I take this code out, it turns on...?? I checked my code and this is the =
only=20
spot I do anything with the layer statuses.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> $layerObj =3D=20
$mapObj->getLayer(0);<BR> $layerObj->set("status",0);</FONT></=
DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial =
size=3D2>LAYER<BR> =20
NAME "Aerial Overlay"<BR> =
STATUS=20
OFF<BR> TILEINDEX=20
"aerial.shp"<BR> TILEITEM=20
"location"<BR> TYPE=20
RASTER<BR> MAXSCALE=20
10000<BR>END<BR></DIV></FONT></BODY></HTML>
------=_NextPart_000_028E_01C2DCC9.8CCD09A0--
More information about the MapServer-users
mailing list