[Mapserver-users] drawLegend() labels wrong position

Eric Bridger eric at gomoos.org
Thu Aug 14 09:09:10 EDT 2003


Just a guess, but a 3000 X 3000 legend size seems extremely large and my be causing your
problems.  Try 300 X 300.

At 02:04 PM 08/14/2003 +0200, Twan Kogels wrote:
>Hello,
>
>I've got a little problem with the mapscript drawLegend() function, it goes oke, but the labels within the legend are not on the right spot. I've attached a example.
>
>Here is the code which i use to generate my legend:
>========
>$lg=$map->legend;
>$lg->set("width", 3000);
>$lg->set("height", 3000);
>$lg->set("keysizex", 20);
>$lg->set("keysizey", 20);
>$lg->set("outlinecolor", $map->addColor(255,255,0));
>$legend_img=$map->drawLegend();
>$legend_url=$legend_img->saveWebImage(MS_PNG,1,1,0);
>=======
>
>Am i doing something wrong?
>
>Best regards,
>Twan
>




More information about the mapserver-users mailing list