About custom legends and such. . .

Astrid Emde astrid.emde at CCGIS.DE
Fri Oct 22 01:07:32 PDT 2004


Bob Basques wrote:

> All,
>
> What options are available for customizing the legend output.   I would
> like to add in some Javscript tot the legend entries.  Would/should this
> be done in the legend template?
>
> I'm at a bit of a loss as to how to place some specific legend
> javascript on each theme.
>
> Thanks
>
> bobb
>
Hi ,

that's how I get my legend.

http://wms1.ccgis.de/mapbender2/metadata/UMN%20USER.html


the html-script looks like that. Here I can put in my javascript.

--------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Legend</title></head>


<script type="text/javascript">
<!--
window.resizeTo(450, 600);


// -->
</script>
<body>
<h3>Legend UMN User</h3>
<br>

<img
src="http://wms1.ccgis.de/cgi-bin/mapserv?map=/data/umn/umn_user.map&VERSION=1.1.0&REQUEST=getLegendGraphic&SERVICE=WMS&LAYER=UMN%20USER&FORMAT=text/html">
<br>
</body>
</html>

--------------------------------------


Hope this can help you.

Astrid Emde

--------------------------------------
  Astrid Emde
  CCGIS GbR
  Siemensstraße 8
  53121 Bonn
  Germany
----------------------------------
   astrid.emde at ccgis.de
          www.ccgis.de
----------------------------------
  Tel.:      ++49 (0) 228 90826 19
  Fax.:      ++49 (0) 228 90826 11
  Zentrale:  ++49 (0) 228 90826 0
----------------------------------



More information about the MapServer-users mailing list