[mapserver-users] Problem with html legend
Jan Hartmann
j.l.h.hartmann at uva.nl
Tue Apr 7 07:57:28 PDT 2020
Probably some silly mistake, but I can't get the MapServer HTML legend
working. My mapfile has:
legend
status embed
label
size tiny
end
template "paleogeography_legend.html"
end
And "paleogeography_legend.html" just has:
[leg_class_html opt_flag=15]
<img src=[leg_icon]> --- [leg_class_name]<br>
[/leg_class_html]
This should return the same legend as without the template, but with
"---" added between icon and classname, right? It doesn't. It always
returns the default legend, as if the html template doesn't get read.
Can anyone help?
(BTW, the demo on https://demo.mapserver.org/itasca_legend/ is broken)
Jan
More information about the MapServer-users
mailing list