[Mapserver-users] Legends

Ed McNierney ed at topozone.com
Wed Jan 22 15:29:47 EST 2003


John -

If you use the "mode=" commands to have MapServer generate just the map, or just the scalebar, or just the legend, etc. then the image is written to cgi-bin stdout - that is, back to the caller, so you can use the MapServer URL as the SRC property of an IMG tag, as in:

	<img src="http://www.mydomain.com/cgi-bin/mapserv?mode=legend&.....">

If you have the legend generated as one of several images in processing an HTML template, then MapServer will write the legend image to the tmp directory (specified in the MAP file) and substitute the URL to that image for the [legend] tag in the template.

	- Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242 

-----Original Message-----
From: John McCue [mailto:jmccue at geovue.com]
Sent: Wednesday, January 22, 2003 3:15 PM
To: Mapserver-Users
Subject: RE: [Mapserver-users] Legends



Where does the legend image get written to?

_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list