legends.

Blammo bob.basques at CI.STPAUL.MN.US
Sat Oct 23 05:09:38 EDT 2004


I'm trying to get a legend template working.

I have the CLASS names displaying, but how do I get the LAYER names to
return?

In the Map File :

LAYER
    NAME 'tgr2k_mnplacepoly_alb'
    DATA '/var/www/lehdmap_data/tgr2k_mnplacepoly_alb'
    TYPE POLYGON
    STATUS OFF
    CLASS
      *NAME 'Cities & Towns'*
      ##COLOR 0 0 255
      OUTLINECOLOR 0 0 255
    END
    MAXSCALE 2000000
  END

and in the legend template:


   [leg_class_html]
      <input type=checkbox name="map_[leg_class_name]_status"
            value=1 [if name=layer_status oper=eq value=2]CHECKED[/if]
 ><img src=[leg_icon]> [leg_class_name]<br>
   [/leg_class_html]

This displays the "*NAME 'Cities & Towns'" above just fine, but how do I
get at the LAYER-NAME above, *NAME 'tgr2k_mnplacepoly_alb', I need to
have them both output, can this be done in the template?

Thanks



bobb

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20041023/1dee68d0/attachment.html


More information about the mapserver-users mailing list