Mapscript Html Legends
Steve Lime
Steve.Lime at DNR.STATE.MN.US
Mon Oct 9 10:02:24 PDT 2006
I believe templates, including legend templates can be used using the processTemplate method. A
super simple template like
[legend]
would be enough to get at the HTML legend. You could also use the MapServer CGI as a legend
engine. Calls like /cgi-bin/mapserv?map=...&mode=legend will get you the HTML from an HTML
legend if it's defined that way (or an image otherwise).
Steve
>>> Felipe Costa <fsc7mail at GMAIL.COM> 10/9/2006 10:19 AM >>>
Hello,
I've seen the tutorial in the site about html legends but there was written
that it's necessary cgi. Is there anyway to use html legends using
Mapscript?
Actually my problem is that I have a layer with a big description, that
makes
my legend picture appears too big, breaking my layout. I wanted to hav the
possibility to break the lines like a <br /> tag in my Legend object. I
thought about HTML legends because I could have more control if legends were
in text.
I don't know if I was able to describe my problem but thanks in advance for
any help.
Felipe Costa
Instituto Nacional de Pesquisas da Amazônia - INPA
SIGLAB
More information about the MapServer-users
mailing list