<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi all<br><br>I'm new to mapserver and would like to use a legend template. <br><br>I've created a template as below:<br><br>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). <br><br>Any help or ideas would be appreciated. <br><br>thanks<br><br>Ceri<br><br>[leg_header_html]<table><br>[/leg_header_html]<br> [leg_layer_html visibility_flag=15]<br> [if name=layer_status oper=eq value=1]<tr id='layer'><td colspan='2'>[leg_layer_name]</td></tr>[/if]<br> [/leg_layer_html]<br>[leg_class_html visibility_flag=15]<br><tr><br> <td><img src ="[leg_icon width=20 height=10]" /></td><br> <td>[leg_class_name]</td><br> </tr> <br> [/leg_class_html]<br> [leg_footer_html]<br> </table><br>[/leg_footer_html] <br><br><br><br /><hr />Do you know a place like the back of your hand? Share local knowledge with <a href='http://www.backofmyhand.com' target='_new'>BackOfMyHand.com</a></body>
</html>