[Mapserver-users] This should be easy but..

Paul Spencer spencer at dmsolutions.ca
Thu May 20 11:02:34 EDT 2004


Gerry,

there was a suggestion on the list in the last couple of days (I think) 
regarding using HTML legend templates to accomplish this.  The gist of 
it was to set metadata on the layer that you want to appear in the 
legend and include something like this in the legend template:

[if name=SHOWINLEGEND oper=eq value=1]
[leg_layer_name]
[/if]

you can also reverse the logic and put metadata in layers you don't want 
in the legend, and recode the [if] appropriately

If you are not using HTML legends then I have no idea if this can be 
done or not.  Groups perhaps?

Cheers,

Paul

Gerry Creager N5JXS wrote:

> I'm strapped for time.  Per a recent suggestion, I'm creating 2 layer 
> instances for some polygons.  The fill polygon needs to be 
> semitransparent while the outline later needs to be opaque.  OK, I can 
> handle this.
> 
> How can I keep one of the 2 from automagically appearing in the legend?
> 
> I know it's gotta be easy...
> 
> Thanks, Gerry

-- 
  -----------------------------------------------------------------
|Paul Spencer                           pspencer at dmsolutions.ca   |
|-----------------------------------------------------------------|
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
  -----------------------------------------------------------------




More information about the mapserver-users mailing list