[mapserver-users] layer_status always eq 0 with mode=legend and status ON

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Thu Dec 2 09:36:18 EST 2010


Hi,
I'm starting using mode=legend and I cannot get the proper STATUS value of 
my layers definition when STATUS is ON. 
My mapfile contains 3 layers, one layer has STATUS ON, another STATUS 
DEFAULT and the other STATUS OFF

In the result of mode=legend I get layer_status = 0 for layers having 
STATUS ON or OFF.
I get layer_status = 2 when STATUS = DEFAULT
Here is the line in the template
aszLegendArray[szGroup][nLayerId]["selected"] = [if name=layer_status 
value=0]0[/if][if name=layer_status value=1]1[/if][if name=layer_status 
value=2]1[/if];

Should layer_status be equal to 1 when STATUS ON?
thanks
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20101202/4ce7a944/attachment-0001.html


More information about the mapserver-users mailing list