legend type if constructs and HTML templates

Steve Lime steve.lime at DNR.STATE.MN.US
Mon Nov 22 17:35:36 EST 2004


Short answer is no.

It's possible I imagine but I'll defer to Dan or Julien regarding how
possible. I have used their tag attribute handling outside of the
legends (e.g. [shpxy ...]), so there are definitely uses beyond legends.
I think it's a good idea.

While we're on the subject, I'd like to see the operator set expanded
to include gt, ge, lt and le. That would allow some interesting
scale-based manipulations. For example you display an inactive button or
whatever when out of a layers scale. You still want to show the layer in
the legend but you don't want anyone to interact with it.

I guess I'd say add these to bugzilla as feature requests pending
comments from the DM gurus...

Steve

>>> "Kralidis,Tom [Burlington]" <Tom.Kralidis at EC.GC.CA> 11/22/2004
4:22:18 PM >>>
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