[mapserver-users] html legend template

fx gamoy fx.gamoy at geomatika.fr
Wed Sep 28 15:55:09 EDT 2011


Hello

I ve got somme difficulties with html legend and template

basic works fine.

[leg_layer_html opt_flag=3]
<table 
style="width:100%;margin:0px;padding:0;border-collapse:collapse;"> 
<tr><td class="corpsblack">[if name=layer_status oper=eq 
value=1]Hello[/if][if name=any_layer_metadata isset 
value=title][metadata name=title][/if] 
(<b>[leg_layer_minscale]</b>-<b>[leg_layer_maxscale]</b>)</td></tr></table>
[/leg_layer_html]

The first "if" works fine -> if layer->status==MS_ON returns hello

the second if don't work.
i would like to get the value of the metadata "title" if the metadata is 
set for my layer
but the "if" is not processed and the processing return the all if 
syntax witouth any translation...
you can see un screenshot in this email.

mapserv-5.6.7on linux debian box..

Any suggestion will be appreciated..

Thanks
Best regards,
fx
-------------- next part --------------
A non-text attachment was scrubbed...
Name: legend.png
Type: image/png
Size: 32518 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110928/d9f5ee8c/legend-0001.png


More information about the mapserver-users mailing list