[Mapserver-users] mapscript legendObj size

forum master forumq4u at hotmail.com
Mon Apr 5 10:35:27 PDT 2004


Hi All,

I am having a problem getting a legendObj to draw to a specified size. I set 
the width and height and the properties reflect the change, yet the legend 
draws at a small size (same size always) regardless of what width/height is 
set. Here is the code:

...
$map->legend->set('width',400);
echo $map->legend->width;          // prints 400
$image = $map->drawLegend();
$image->saveWebImage(MS_PNG,1,1,0);          // prints a png legend that is 
too small


Thanks,
-fq4u

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail




More information about the MapServer-users mailing list