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



_______________________________________________
mapserver-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to