Layer name in legend

Ei Fujioka efujioka at DUKE.EDU
Fri Feb 23 09:54:47 PST 2007


Hello Mapserver experts,

I'm new to this mailing list.

I'm wondering if there is a way to include layer names, in addition to 
class symbols, in the legend.
I searched the archives and found a thread regarding this (Dec 21, 2006).

It seems there is no out-of-the-box solution and the guy mentioned he 
created a PHP/Mapscript script to do this.

Would someone be able to show me a sample script?

I'm using Mapserver 4.2 with PHP/Mapscript.
I would like to produce a legend with codes like:

// $omap is a map object.
$image = $omap->drawLegend();
$image_url=$image->saveWebImage();
// The resulting image includes class symbols/names only.

Thank you very much.

Ei

-- 
======================
   Ei Fujioka
   Research Associate
   Duke University

   (919) 613-8021
   efujioka at duke.edu
======================



More information about the MapServer-users mailing list