legend

Bill Thoen bthoen at GISNET.COM
Tue Dec 26 16:05:12 EST 2006


What does your html file look like? Perhaps you've got a mismatched 
bracket somewhere?

Eduardo Zenaide wrote:
> hi, Bill,
>
> i've done it all. the image simple don't appears.
>
>
> 2006/12/26, Bill Thoen <bthoen at gisnet.com <mailto:bthoen at gisnet.com>>:
>
>     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
>
>
>
>
> -- 
> Eduardo Zenaide 



More information about the mapserver-users mailing list