[Mapserver-users] perl mapscript questions
Eric Bridger
eric at gomoos.org
Mon Mar 10 08:38:48 PST 2003
my $legend_img = $map->drawLegend();
$legend_img->saveImage($leg_image_name, $mapscript::MS_PNG,
$map->{transparent}, $map->{interlace}, 0);
Put an <img src="$leg_image_name"> in your html.
You also have to turn on all the layers for which you want legends and
make sure they have a classitem, and a class with a name in the map
file.
$layer->{status} = $mapscript::MS_ON;
On Mon, 2003-03-10 at 21:23, Jon Shorie wrote:
> I have posted a few questions on here concerning a swtich to perl mapscript
> from the basic cgi mapserver.
>
> First, thank you all that have helped me on this. My app is coming along
> well. Now, I am trying to implement the legend in perl.
>
> Does anybody have any hints on how to get this.
>
> _______________________________________________
> 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