[ms4w-users] help with legend template

ceri whitmore ceri.whitmore at hotmail.co.uk
Fri Oct 5 05:57:11 EDT 2007


Hi all

I'm new to mapserver and would like to use a legend template. 

I've created a template as below:

The problem i'm having is the visibility flag for the classes is not working. Classes which are out of scale (maxscale) are still showing up in the legend. I've done a test and when using the embed option for the legend these same classes are not showing(which is what i'd expect). 

Any help or ideas would be appreciated. 

thanks

Ceri

[leg_header_html]<table>
[/leg_header_html]
            [leg_layer_html visibility_flag=15]
        [if name=layer_status oper=eq value=1]<tr id='layer'><td colspan='2'>[leg_layer_name]</td></tr>[/if]
            [/leg_layer_html]
[leg_class_html visibility_flag=15]
<tr>
 <td><img src ="[leg_icon width=20 height=10]" /></td>
 <td>[leg_class_name]</td>
     </tr>  
  [/leg_class_html]
    [leg_footer_html]
 </table>
[/leg_footer_html] 



_________________________________________________________________
Feel like a local wherever you go.
http://www.backofmyhand.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20071005/2722dc14/attachment.html


More information about the ms4w-users mailing list