[mapserver-users] Hide legend of some layers
Venkat Rao Tammineni
vtammineni at roulacglobal.com
Wed Mar 18 03:16:17 PDT 2009
Hi,
I have code for layers on and off
public static void layersTurnOn(mapObj map,layerObj layer)
{
layer = map.getLayerByName("Continents");
layer.status=(int)mapscript.MS_ON;
layer = map.getLayerByName("Countries");
layer.status=(int)mapscript.MS_ON;
}
public static void LayersTurnOff(mapObj map,layerObj layer)
{
layer = map.getLayerByName("Continents");
layer.status=(int)mapscript.MS_OFF;
layer = map.getLayerByName("Countries");
layer.status=(int)mapscript.MS_OFF;
}
These two methods you have to call LayersTurnOff() before creating legend
and you can layersTurnOn()
Layers
Thanks
Venkat.
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Alberto
Fernández Sánchez
Sent: Wednesday, March 18, 2009 3:19 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Hide legend of some layers
Hello friends,
I need help because I have a doubt in the redaction of mapfile. How I can
hide the legend of some layers or classes of layers?
Thank you.
_____
Nuevo Windows Live, un mundo lleno de posibilidades Descúbrelo.
<http://www.microsoft.com/windows/windowslive/default.aspx>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090318/ce4a7a08/attachment.htm>
More information about the MapServer-users
mailing list