legend
Bill Thoen
bthoen at GISNET.COM
Tue Dec 26 12:18:15 PST 2006
Eduardo Zenaide wrote:
> ok, i've seen the documentation but i really suck on cgi and don't
> figure out how to put it on the html.
> the documentation refers to using <img src=[legend]> but it won't work
> here.
>
> any help? please? :D
>
Eduardo,
Here's how you do this. In your map file within the MAP object
definition add a LEGEND object, like so:
LEGEND
STATUS ON
END
And then in your html file where you want to display the legend add the
code:
<img src="[legend]" alt="Map Legend" />
Alternatively, you can create a link to it and it will pop up in a new
browser window. Just pu tthis in your html fiel where you want the link
to appear:
<a href="[legend]" target="_blank" />
HTH,
- Bill Thoen
More information about the MapServer-users
mailing list