[ms4w-users] help with legend template

Jeff McKenna jmckenna at dmsolutions.ca
Mon Oct 15 10:38:08 EDT 2007


hmmm.  Look at section 1.4.5 of the html_legends doc 
(http://mapserver.gis.umn.edu/docs/howto/html_legend/#class-block)...I 
would try that example:

************

e.g. opt_flag=14 (shown below) means do not show classes in the legend 
that are out of scale.

[leg_class_html opt_flag=14]
   ...
[/leg_class_html]

************



ceri whitmore wrote:
> 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]
> 
> 


-- 
Jeff McKenna
DM Solutions Group Inc.
http://www.dmsolutions.ca


More information about the ms4w-users mailing list