legend type if constructs and HTML templates

Kralidis,Tom [Burlington] Tom.Kralidis at EC.GC.CA
Mon Nov 22 17:22:18 EST 2004


Hi,

Using MapServer CGI, I have enabled HTML legends.

Looking at the HTML legend template I used, there are constructs like:

[if name=layer_type oper=neq value=4]
<img src="[leg_icon]" alt="[leg_layer_name]" title="[leg_layer_name]"
border="1"/>
[/if]

...and so on.

My question is can I use similar constructs in the HTML templates
themselves, and can they be processed by MapServer CGI?  i.e. if I have
in my mapfile WEB/METADATA:

"appmode" "gazetteer"

[if name=web_appmode value=gazetteer]
<a href="someurl">click here</a>
[/if]

Cheers

..Tom



More information about the mapserver-dev mailing list