<br><font size=2 face="sans-serif">I did try with and without oper=eq,
and the behaviour is the same.</font>
<br>
<br><font size=2 face="sans-serif">I noticed here </font><a href=http://mapserver.org/output/html_legend.html><font size=3 color=blue><u>http://mapserver.org/output/html_legend.html</u></font></a><font size=2 face="sans-serif">
&nbsp;that layer_status is a supported tag in the group block (leg_group_html)
but not in a layer block (leg_layer_html) which I'm using. Is the documentation
up to date on this?</font>
<br>
<br><font size=2 face="sans-serif">I'm using the result of mode=legend,
to populate a geoext layertree. What I'm trying to accomplish is to set
the initial visibility parameter of the layer tree node. I thought that
using the layer_status value would be a good solution...</font>
<br>
<br><font size=2 face="sans-serif">Is it a bug or my approach is not right?</font>
<br><font size=2 face="sans-serif">thanks</font>
<br><font size=2 face="sans-serif">steve</font>
<br>
<br>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Alexandre Dube &lt;adube@mapgears.com&gt;@lists.osgeo.org</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : mapserver-users-bounces@lists.osgeo.org</font>
<p><font size=1 face="sans-serif">2010-12-02 09:55</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">mapserver-users@lists.osgeo.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: [mapserver-users] layer_status always
eq 0 with mode=legend and &nbsp; &nbsp; &nbsp; &nbsp;status ON</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><font size=3>Steve,<br>
<br>
 &nbsp;I'm really not sure about this, but I think you need to specify
the 'oper' parameter, as such :<br>
</font><font size=2 face="sans-serif"><br>
aszLegendArray[szGroup][nLayerId][&quot;selected&quot;] = [if name=layer_status
oper=eq value=0]0[/if][if name=layer_status oper=eq value=1]1[/if][if name=layer_status
oper=eq value=2]1[/if];</font><font size=3> <br>
<br>
 &nbsp;That's the way all samples in the doc page [1] are displayed.<br>
<br>
HTH,<br>
<br>
Alexandre<br>
<br>
[1] </font><a href=http://mapserver.org/output/html_legend.html><font size=3 color=blue><u>http://mapserver.org/output/html_legend.html</u></font></a><font size=3><br>
<br>
<br>
On 10-12-02 09:36 AM, </font><a href=mailto:Steve.Toutant@inspq.qc.ca><font size=3 color=blue><u>Steve.Toutant@inspq.qc.ca</u></font></a><font size=3>
wrote: </font>
<br><font size=2 face="sans-serif"><br>
Hi,</font><font size=3> </font><font size=2 face="sans-serif"><br>
I'm starting using mode=legend and I cannot get the proper STATUS value
of my layers definition when STATUS is ON. <br>
My mapfile contains 3 layers, one layer has STATUS ON, another STATUS DEFAULT
and the other STATUS OFF</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
In the result of mode=legend I get layer_status = 0 for layers having STATUS
ON or OFF.</font><font size=3> </font><font size=2 face="sans-serif"><br>
I get layer_status = 2 when STATUS = DEFAULT</font><font size=3> </font><font size=2 face="sans-serif"><br>
Here is the line in the template</font><font size=3> </font><font size=2 face="sans-serif"><br>
aszLegendArray[szGroup][nLayerId][&quot;selected&quot;] = [if name=layer_status
value=0]0[/if][if name=layer_status value=1]1[/if][if name=layer_status
value=2]1[/if];</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
Should layer_status be equal to 1 when STATUS ON?</font><font size=3> </font><font size=2 face="sans-serif"><br>
thanks</font><font size=3> </font><font size=2 face="sans-serif"><br>
Steve</font><font size=3> </font>
<br><tt><font size=3><br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
</font></tt><a href="mailto:mapserver-users@lists.osgeo.org"><tt><font size=3 color=blue><u>mapserver-users@lists.osgeo.org</u></font></tt></a><tt><font size=3><br>
</font></tt><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users"><tt><font size=3 color=blue><u>http://lists.osgeo.org/mailman/listinfo/mapserver-users</u></font></tt></a><tt><font size=3><br>
 &nbsp;</font></tt>
<br><font size=3><br>
</font>
<br><tt><font size=3>-- <br>
Alexandre Dubé<br>
Mapgears<br>
</font></tt><a href=http://www.mapgears.com/><tt><font size=3 color=blue><u>www.mapgears.com</u></font></tt></a><tt><font size=3><br>
</font></tt><tt><font size=2>_______________________________________________<br>
mapserver-users mailing list<br>
mapserver-users@lists.osgeo.org<br>
http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
</font></tt>
<br>
<br>
<br>